Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 31, 2020 08:31 pm GMT

Benchmark your computers with real-world Web Development Tools

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.gitcd dev-benchmarksh run.sh "Brand Model - OS - CPU - RAM - HDD"- Run sh run.sh twice to get more accurate results. (due to caching)ResultsAfter 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


Original Link: https://dev.to/ngduc/benchmark-your-computers-for-real-world-web-development-tools-27o3

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To