Benchmark script to measure performance of development tools.
Motivation: Recently I realized that I own multiple computers. I wanted to know which one can run my web development tools faster and more efficiently. So, I created this simple script to benchmark them by running my regular real-world tools like: CRA, express generator etc. and measure the time.
- The run.sh script will generate a CRA webapp (benchmark1) and an Express-NodeJS app (benchmark2).
- Then it will run usual npm commands like: npm run build, npm run test and measure the time (in seconds).
- Results will be added to this README.md file. (run git status to see the changes)
Create a Pull Request to add results of your computer performance.
- Node JS v15+
- Tested with Ubuntu, Debian, MacOS, Windows (with Cygwin).
- Clone and Run:
git clone https://github.com/ngduc/dev-benchmark.git
cd dev-benchmark
sh run.sh "Brand Model - OS - CPU - RAM - HDD - Node version"
Tips:
- Run "sh run.sh" twice to get more accurate results. (due to npm caches)
- Close all background apps, remote access apps. Plug in the charger if using a laptop.
- After running the script (run it twice for accurate results), the benchmark results (in seconds) will be added to this README.md file.
- Create a Pull Request to add your results here.
HP 17z-ca300 - Windows 11 WSL2 Ubuntu - AMD Ryzen 5 4500U - 16 GB DDR4-2666 SDRAM - Intel SSD6 M.2 NVMe - Node 18.17.0
- create
24.738 - npm run build
6.267 - npm run test
1.723
- create
6.721 - npm run build
2.882 - npm run test
3.928
- create
35.709 - npm run build
8.856 - npm run test
2.613
- create
14.416 - npm run build
3.765 - npm run test
4.306
- create
36.71 - npm run build
8.71 - npm run test
3.08
- create
18.55 - npm run build
3.90 - npm run test
4.82
- create
46.551 - npm run build
9.056 - npm run test
2.302
- create
14.234 - npm run build
3.608 - npm run test
4.126
- create
61.548 - npm run build
45.456 - npm run test
16.485
- create
20.107 - npm run build
8.130 - npm run test
9.144
MacBook Pro (Retina, 13-inch, Early 2015) - MacOS Mojave - 3.1 GHz Intel Core i7 - 16 GB 1867 MHz DDR3 - SSD
- create
44.45 - npm run build
15.58 - npm run test
3.45
- create
15.50 - npm run build
5.49 - npm run test
6.19
- create
76.028 - npm run build
37.645 - npm run test
8.571
- create
21.463 - npm run build
12.339 - npm run test
12.045
- create
162.016 - npm run build
42.069 - npm run test
18.397
- create
44.258 - npm run build
16.773 - npm run test
17.237
- create
61.832 - npm run build
21.982 - npm run test
6.839
- create
20.799 - npm run build
8.498 - npm run test
9.261
- create
74.715 - npm run build
39.068 - npm run test
8.107
- create
23.202 - npm run build
12.654 - npm run test
11.308
- create
16.416 - npm run build
6.145 - npm run test
2.088
- create
11.430 - npm run build
2.787 - npm run test
1.992
- create
8.599 - npm run build
3.466 - npm run test
.976
- create
2.919 - npm run build
1.665 - npm run test
2.750
- create
24.257 - npm run build
9.523 - npm run test
3.092
- create
6.700 - npm run build
4.467 - npm run test
5.186