summaryrefslogtreecommitdiff
path: root/benchmark/_http-benchmarkers.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/_http-benchmarkers.js')
-rw-r--r--benchmark/_http-benchmarkers.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/benchmark/_http-benchmarkers.js b/benchmark/_http-benchmarkers.js
index 581bed6b2d..5429bf386d 100644
--- a/benchmark/_http-benchmarkers.js
+++ b/benchmark/_http-benchmarkers.js
@@ -15,8 +15,13 @@ function AutocannonBenchmarker() {
}
AutocannonBenchmarker.prototype.create = function(options) {
- const args = ['-d', options.duration, '-c', options.connections, '-j', '-n',
- `http://127.0.0.1:${options.port}${options.path}` ];
+ const args = [
+ '-d', options.duration,
+ '-c', options.connections,
+ '-j',
+ '-n',
+ `http://127.0.0.1:${options.port}${options.path}`
+ ];
const child = child_process.spawn(this.autocannon_exe, args);
return child;
};
@@ -43,8 +48,12 @@ function WrkBenchmarker() {
}
WrkBenchmarker.prototype.create = function(options) {
- const args = ['-d', options.duration, '-c', options.connections, '-t', 8,
- `http://127.0.0.1:${options.port}${options.path}` ];
+ const args = [
+ '-d', options.duration,
+ '-c', options.connections,
+ '-t', 8,
+ `http://127.0.0.1:${options.port}${options.path}`
+ ];
const child = child_process.spawn('wrk', args);
return child;
};
@@ -59,8 +68,7 @@ WrkBenchmarker.prototype.processResults = function(output) {
}
};
-const http_benchmarkers = [ new WrkBenchmarker(),
- new AutocannonBenchmarker() ];
+const http_benchmarkers = [new WrkBenchmarker(), new AutocannonBenchmarker()];
const benchmarkers = {};