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.
- Clone and Run:
git clone https://ngduc@github.com/ngduc/dev-benchmark.git
cd dev-benchmark
chmod +x run.sh
sh run.sh
- Run "sh run.sh" twice to get more accurate results. (due to caching)
- 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.
- create 36.71
- build 8.71
- run tests 3.08
- create 18.55
- build 3.90
- run tests 4.82
MacBook Pro (Retina, 13-inch, Early 2015) - MacOS Mojave - 3.1 GHz Intel Core i7 - 16 GB 1867 MHz DDR3 - SSD
- create 44.45
- build 15.58
- run tests 3.45
- create 15.50
- build 5.49
- run tests 6.19
- create 76.028
- build 37.645
- run tests 8.571
- create 21.463
- build 12.339
- run tests 12.045