DEV Community

loading...
Cover image for Benchmark your computers with real-world Web Development Tools

Benchmark your computers with real-world Web Development Tools

ngduc profile image Duc Ng ・2 min read

Recently I realized that I own multiple computers for web development. I wanted to know which one can run my Web Dev Tools faster and more efficiently. So, I created this simple script to benchmark them by running my regular tools like CRA, express generator etc. and measure the time.

Usually, we assume that a newer, more expensive computers should be faster than an old one. That is true but how much faster? We will need some numbers to prove that. And nothing is better than the performance results from real-world development tools.

How does it work?

  • The run.sh script will temporarily generate a CRA webapp (benchmark1) and an Express NodeJS app (benchmark2).
  • Then it will run the 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)

Usage

  • Node JS v15+
  • This has been 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"

- Run sh run.sh twice to get more accurate results. (due to caching)
Results
After running the script (run it twice for accurate results), the benchmark results (in seconds) will be added to this README.md file.
Enter fullscreen mode Exit fullscreen mode

The result will look like this:

### HP 17z-ca300 - Ubuntu - AMD Ryzen 5 4500U - 16 GB DDR4-2666 SDRAM - SSD
#### CRA
- create 36.71
- npm run build 8.71
- npm run test 3.08
#### express
- create 18.55
- npm run build 3.90
- npm run test 4.82
Enter fullscreen mode Exit fullscreen mode

You can create Pull Requests to add results of your computer performance to share with fellow developers.

Any ideas, feedbacks, suggestions are welcome. Thanks.

Github Repository: https://github.com/ngduc/dev-benchmark

Discussion (0)

pic
Editor guide