An Interest In:
Web News this Week
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
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.
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
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
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To