You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?
Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.
Note that my Windows machine is much more powerful than my Mac (see specs below), so the difference between those two is much worse than the numbers indicate.
I opened a new issue since #7943 was thought to be fixed.
Machine specs
Windows: AMD Ryzen 9 3900XT, Samsung SSD 970 EVO Plus 1TB, Windows 11 Home v23H2, 32G RAM
Linux: AMD Ryzen 9 3900XT, Samsung SSD 980 PRO 500GB, Arch Linux x86_64 kernel 6.12.10-arch1-1, 32G RAM
Windows build times should be somewhat similar to Mac and Linux build times for the same package.
Actual behavior
Windows build times are at least several times slower than expected, sometimes so slow as to be unusable for large/complex packages.
For example, https://github.com/migueldeicaza/SwiftGodot takes so long to build on my Windows machine that I have yet to see it ever complete. A clean build takes only 2 minutes on Linux.
Steps to reproduce
Build any Swift package on Windows with swift build.
Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: x86_64-unknown-linux-gnu
Linux eta 6.12.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:57 +0000 x86_64 GNU/Linux
Mac Swift
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: x86_64-apple-macosx15.0
Darwin PC16221.local 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:41:43 PST 2024; root:xnu-11215.61.5~2/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered:
silverhammermba
changed the title
Swift package compile times are orders of magnitude slower on Windows
Swift package compile times are at least 2-3 slower on Windows (sometimes much more)
Jan 31, 2025
silverhammermba
changed the title
Swift package compile times are at least 2-3 slower on Windows (sometimes much more)
Swift package compile times are at least 2-3 times slower on Windows (sometimes much more)
Jan 31, 2025
I'm glad it's not just me! I've had a feeling that my Windows builds were slower than my Linux builds on the same hardware, but never got around to backing up my gut feeling with benchmarks. Thanks for putting the work in and filing this issue 🙏
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
I'm using https://github.com/swiftlang/swift-syntax as my test project. Results:
Note that my Windows machine is much more powerful than my Mac (see specs below), so the difference between those two is much worse than the numbers indicate.
I opened a new issue since #7943 was thought to be fixed.
Machine specs
Expected behavior
Windows build times should be somewhat similar to Mac and Linux build times for the same package.
Actual behavior
Windows build times are at least several times slower than expected, sometimes so slow as to be unusable for large/complex packages.
For example, https://github.com/migueldeicaza/SwiftGodot takes so long to build on my Windows machine that I have yet to see it ever complete. A clean build takes only 2 minutes on Linux.
Steps to reproduce
Build any Swift package on Windows with
swift build
.CMake+ninja builds done via:
Linux+Mac builds were just
swift build
.Swift Package Manager version/commit hash
Swift 6.0.2-dev
Swift & OS version (output of
swift --version ; uname -a
)Windows install via official winget instructions:
Linux install via AUR:
Mac Swift
The text was updated successfully, but these errors were encountered: