We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264a8f3 commit 4afce82Copy full SHA for 4afce82
benchmark/common.js
@@ -16,7 +16,6 @@ exports.PORT = process.env.PORT || 12346;
16
17
// If this is the main module, then run the benchmarks
18
if (module === require.main) {
19
- hasWrk();
20
var type = process.argv[2];
21
var testFilter = process.argv[3];
22
if (!type) {
@@ -92,14 +91,14 @@ function Benchmark(fn, options) {
92
91
93
var self = this;
94
95
96
process.nextTick(function() {
97
self._run();
98
});
99
}
100
101
// benchmark an http server.
102
Benchmark.prototype.http = function(p, args, cb) {
+ hasWrk();
103
104
var regexp = /Requests\/sec:[ \t]+([0-9\.]+)/;
105
var url = 'http://127.0.0.1:' + exports.PORT + p;
0 commit comments