I want to figure out if it is worth it to upgrade to a faster MacBook for faster JS development.
If you have a MacBook, older or newer than mine, can you help me by running the same benchmark as me. As a benchmark, we are compiling VS Code from TS to JS which is one of the biggest open source TS projects I imagine.
- Make sure your MacBook is plugged in and charging at 100%. If you can easily change your Node version, change it to v10.
- Close all resource-intensive programs on your Macbook
- Clone the repository and perform the benchmark:
git clone https://github.com/microsoft/vscode
cd vscode
git checkout a6774a6961a802453d7ae985d4f555b8f3e0bb88
yarn # This takes a few minutes
time yarn run compile
At the bottom it will say how long the command took:
yarn run compile 218.22s user 12.71s system 128% cpu 2:59.06 total
- Print the specs of your MacBook:
system_profiler SPHardwareDataType
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro13,2
Processor Name: Intel Core i5
Processor Speed: 2.9 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: 256.0.0.0.0
SMC Version (system): 2.37f20
Serial Number (system): XXXXXXXXXXXX
Hardware UUID: XXXXXXXXXXXXXXXXXXXXXXXXXX
-
Copy everything up until 'Memory' line (don't copy the serial number)
-
Write in the comments how long it took to compile and for which MacBook specs! I'll start:
My time:
My MacBook (2016 Model 13inch):