summaryrefslogtreecommitdiff
path: root/benchmark/http2/simple.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-01-23 13:18:55 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-01 10:49:03 +0100
commit1178670cca16a268162aaf39afeb933779988d22 (patch)
treea3773ace6931745c032dd32a55309d7f43e9a5de /benchmark/http2/simple.js
parent2072f343ad5c7f8a74e480c625b5b4df3d071bf1 (diff)
downloadandroid-node-v8-1178670cca16a268162aaf39afeb933779988d22.tar.gz
android-node-v8-1178670cca16a268162aaf39afeb933779988d22.tar.bz2
android-node-v8-1178670cca16a268162aaf39afeb933779988d22.zip
benchmark: (http(2)) refactor
PR-URL: https://github.com/nodejs/node/pull/18320 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/http2/simple.js')
-rw-r--r--benchmark/http2/simple.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/benchmark/http2/simple.js b/benchmark/http2/simple.js
index 37c78d3401..cf017e6735 100644
--- a/benchmark/http2/simple.js
+++ b/benchmark/http2/simple.js
@@ -1,11 +1,8 @@
'use strict';
const common = require('../common.js');
-const PORT = common.PORT;
-
const path = require('path');
const fs = require('fs');
-
const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html');
const bench = common.createBenchmark(main, {
@@ -24,7 +21,7 @@ function main({ requests, streams, clients }) {
out.pipe(stream);
stream.on('error', (err) => {});
});
- server.listen(PORT, () => {
+ server.listen(common.PORT, () => {
bench.http({
path: '/',
requests,