OYO
A benchmark for concurrent performance of Node.js app. Measurements: times/sec, and milliseconds.
Demo
Clone the OYO repo first:
$ git clone https://github.com/hiowenluke/oyo.git
$ cd oyo
$ npm install
Then run the examples:
$ node examples/demo/promise-benchmark.js
The result will be like the following:
Platform info:
macOS Sierra 10.12 x64
Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz x 4
Total Memory 16 GB
Node.js v6.11.2
V8 5.1.281.103
--------------
bluebird 1243519 times/sec
co 82216 times/sec
native-promise 509002 times/sec
tas.promise 1196860 times/sec
How To Use
Install OYO to your project first:
$ cd /path/to/your/project
$ npm install oyo --save-dev
Then create a folder (such as "benchmark") in your project, and write some test cases in it (e.g., see Tas benchmark). And see the following for more details.
-- Write a benchmark test case
-- Change mode to milliseconds
-- Callback after all tests is done
Thanks
Thanks to JoshuaWise. Part of the code reference to his promise-comparison ideas.