Last active
February 7, 2020 10:19
-
-
Save hartbit/08ee9fe241a0f727c63563e441686ee2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmp=`mktemp -d -t swiftpm` | |
git clone --quiet https://github.com/apple/swift-package-manager $tmp > /dev/null | |
swift package --package-path $tmp resolve > /dev/null | |
time swift test --package-path $tmp --parallel | |
system_profiler SPHardwareDataType | |
swift --version |
Here's the benchmark for my current iMac:
real 3m32.863s
user 11m23.876s
sys 5m13.595s
Hardware:
Hardware Overview:
Model Name: iMac
Model Identifier: iMac17,1
Processor Name: Quad-Core Intel Core i7
Processor Speed: 4 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 8 MB
Hyper-Threading Technology: Enabled
Memory: 32 GB
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Target: x86_64-apple-darwin19.2.0
What those real, user, sys mean actually..?
@radianttap: This SO question has a great answer https://stackoverflow.com/questions/556405/what-do-real-user-and-sys-mean-in-the-output-of-time1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if you're interested in laptops, but anyway