diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2017-03-29 18:31:31 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-04-09 13:16:08 +0300 |
commit | 3e3414f45fb872fd4378132f6aa893806b2fad98 (patch) | |
tree | 24c5f1b9504a5a2dbfd5fb002300b1211a86759d /benchmark/http/create-clientrequest.js | |
parent | a3e71a8901bc326bcc701820d10e10d9de4d338a (diff) |
benchmark: control HTTP benchmarks run time
PR-URL: https://github.com/nodejs/node/pull/12121
Refs: https://github.com/nodejs/node/issues/12068
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/http/create-clientrequest.js')
-rw-r--r-- | benchmark/http/create-clientrequest.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/http/create-clientrequest.js b/benchmark/http/create-clientrequest.js index 76134663d00..f40ff9155da 100644 --- a/benchmark/http/create-clientrequest.js +++ b/benchmark/http/create-clientrequest.js @@ -4,15 +4,15 @@ var common = require('../common.js'); var ClientRequest = require('http').ClientRequest; var bench = common.createBenchmark(main, { - pathlen: [1, 8, 16, 32, 64, 128], + len: [1, 8, 16, 32, 64, 128], n: [1e6] }); function main(conf) { - var pathlen = +conf.pathlen; + var len = +conf.len; var n = +conf.n; - var path = '/'.repeat(pathlen); + var path = '/'.repeat(len); var opts = { path: path, createConnection: function() {} }; bench.start(); |