Skip to content

Instantly share code, notes, and snippets.

@JonnyBurger
Last active May 15, 2019 15:18
Show Gist options
  • Save JonnyBurger/bec0378c84dade4d97a213bf78728367 to your computer and use it in GitHub Desktop.
Save JonnyBurger/bec0378c84dade4d97a213bf78728367 to your computer and use it in GitHub Desktop.
Macbook Performance Benchmarks

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.

  1. Make sure your MacBook is plugged in and charging at 100%. If you can easily change your Node version, change it to v10.
  2. Close all resource-intensive programs on your Macbook
  3. 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
  1. 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
  1. Copy everything up until 'Memory' line (don't copy the serial number)

  2. Write in the comments how long it took to compile and for which MacBook specs! I'll start:

@arturkulig
Copy link

please state that you need to be running node 10

nvm use v10 # for nvm users

and having yarn and gulp installed globally

npm i -g yarn gulp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment