summaryrefslogtreecommitdiff
path: root/test/benchmark/test-benchmark-http.js
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-11-11 16:48:03 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-11-20 05:14:36 +0800
commit8450d1129273e19bd68b8dc9b0102eb69ee02de1 (patch)
treec144f4647a0ceaf89c7f7976e973cefd3af30edd /test/benchmark/test-benchmark-http.js
parenta365bb9cb100514efc3f57f7fac03d0679f73ff5 (diff)
downloadnode-new-8450d1129273e19bd68b8dc9b0102eb69ee02de1.tar.gz
benchmark: support URL inputs in create-clientrequest
This patch adds the option in the create-clientrequest benchmark to accept URL inputs (as strings or as URL objects) so we can measure the impact of URL parsing in a more sophisticated use case. PR-URL: https://github.com/nodejs/node/pull/24302 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/benchmark/test-benchmark-http.js')
-rw-r--r--test/benchmark/test-benchmark-http.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/benchmark/test-benchmark-http.js b/test/benchmark/test-benchmark-http.js
index 7255e655c0..65165c4113 100644
--- a/test/benchmark/test-benchmark-http.js
+++ b/test/benchmark/test-benchmark-http.js
@@ -15,6 +15,9 @@ runBenchmark('http',
[
'benchmarker=test-double-http',
'c=1',
+ 'e=0',
+ 'url=long',
+ 'arg=string',
'chunkedEnc=true',
'chunks=0',
'dur=0.1',