Modify mac-build.sh to run make with -j$NCPU flag, where $NCPU is the number
of cores as reported by macOS.
The speed-up was measured to be x2 on Dual-Core Intel Core i5.
Details:
Here are the measured times as reported by the time utility:
parallel: sh mac-build.sh 1365.78s user 77.17s system 274% cpu 8:46.22 total
vanilla: sh mac-build.sh 900.69s user 54.79s system 90% cpu 17:34.50 total
And here is the output of system_profiler SPHardwareDataType:
Hardware:
Hardware Overview:
Model Name: iMac
Model Identifier: iMac18,1
Processor Name: Dual-Core Intel Core i5
Processor Speed: 2,3 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 4 MB
Hyper-Threading Technology: Enabled
Memory: 8 GB
Boot ROM Version: 180.0.0.0.0
SMC Version (system): 2.39f40
Serial Number (system): ?
Hardware UUID: ?
Summary:
Modify
mac-build.sh
to runmake
with -j$NCPU flag, where $NCPU is the number of cores as reported by macOS.The speed-up was measured to be x2 on Dual-Core Intel Core i5.
Details:
Here are the measured times as reported by the
time
utility:And here is the output of
system_profiler SPHardwareDataType
: