para-bench
v0.0.9
Published
A small load testing tool using the benchmark.js suite syntax
Downloads
2
Maintainers
Readme
para-bench
Run performance tests in controlled async environment
This library uses a benchmarkjs style syntax. It allows how many instances should be run and how many should be run concurrently.
var parabench = require('para-bench');
var suite = new parabench.Suite();
suite.add('Sync test',function () {
for(var i = 0 ;i< 10000000;i++){
i+3*i;
}
})
.add('Async test',function (event) {
setTimeout(function () {
event.resolve();
},300);
},{defer:true,minSamples:500,maxConcurrent:250})
.run();