diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-09-13 22:48:53 -0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-09-19 21:14:38 -0300 |
commit | e167ab71fb113fa38866dd11aa99af7079fb463c (patch) | |
tree | 3d91ca0f6e60d08fcab70833b851335e41b53cd0 /benchmark/http2 | |
parent | b1c8f15c5f169e021f7c46eb7b219de95fe97603 (diff) | |
download | android-node-v8-e167ab71fb113fa38866dd11aa99af7079fb463c.tar.gz android-node-v8-e167ab71fb113fa38866dd11aa99af7079fb463c.tar.bz2 android-node-v8-e167ab71fb113fa38866dd11aa99af7079fb463c.zip |
benchmark: var to const
PR-URL: https://github.com/nodejs/node/pull/13757
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'benchmark/http2')
-rw-r--r-- | benchmark/http2/headers.js | 2 | ||||
-rw-r--r-- | benchmark/http2/respond-with-fd.js | 2 | ||||
-rw-r--r-- | benchmark/http2/simple.js | 2 | ||||
-rw-r--r-- | benchmark/http2/write.js | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/http2/headers.js b/benchmark/http2/headers.js index 078e7a356a..dc2fb3a0a1 100644 --- a/benchmark/http2/headers.js +++ b/benchmark/http2/headers.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const PORT = common.PORT; -var bench = common.createBenchmark(main, { +const bench = common.createBenchmark(main, { n: [1e3], nheaders: [0, 10, 100, 1000], }, { flags: ['--expose-http2', '--no-warnings'] }); diff --git a/benchmark/http2/respond-with-fd.js b/benchmark/http2/respond-with-fd.js index d7a312c78b..2c4c767a96 100644 --- a/benchmark/http2/respond-with-fd.js +++ b/benchmark/http2/respond-with-fd.js @@ -7,7 +7,7 @@ const fs = require('fs'); const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); -var bench = common.createBenchmark(main, { +const bench = common.createBenchmark(main, { requests: [100, 1000, 10000, 100000, 1000000], streams: [100, 200, 1000], clients: [1, 2] diff --git a/benchmark/http2/simple.js b/benchmark/http2/simple.js index d12b20fc5a..d0674fd952 100644 --- a/benchmark/http2/simple.js +++ b/benchmark/http2/simple.js @@ -8,7 +8,7 @@ const fs = require('fs'); const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); -var bench = common.createBenchmark(main, { +const bench = common.createBenchmark(main, { requests: [100, 1000, 10000, 100000], streams: [100, 200, 1000], clients: [1, 2] diff --git a/benchmark/http2/write.js b/benchmark/http2/write.js index df76794468..03fe128c6b 100644 --- a/benchmark/http2/write.js +++ b/benchmark/http2/write.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const PORT = common.PORT; -var bench = common.createBenchmark(main, { +const bench = common.createBenchmark(main, { streams: [100, 200, 1000], length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024], }, { flags: ['--expose-http2', '--no-warnings'] }); |