Borrowed from https://vitalets.github.io/js-testrunners-bench/index.html.
- Mocha: https://github.com/mochajs/mocha
- Jest: https://github.com/jestjs/jest
- Jasmine: https://github.com/jasmine/jasmine
Currently, only Linux platforms are supported. Install Node.js and npm first, then in the project's root directory, run:
npm install
npm run main
You can specify the number of sample times per case as the script's first argument (default is 3):
npm run main 10
More sample times, more accurate benchmark, but the script would take longer to run.
On the console: results are sorted in the order of increasing mean time, not total time.
Finally, the script also exports the results
into the results/
folder. Currently, only
HTML format is supported, and all the exported
HTML files will reside in the results/html
folder.