diff options
author | ZYSzys <zyszys98@gmail.com> | 2019-03-27 11:21:49 +0800 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-04-04 15:26:06 +0200 |
commit | b965ac22ca81a449c9e88f066cadcb8abf93f94b (patch) | |
tree | 3da10e1084ac6a5ed49ce1ccd66dc4bc50d519b3 /benchmark | |
parent | eb2dccb17a7148e628a50a9c947a5f98513d8e63 (diff) | |
download | node-new-b965ac22ca81a449c9e88f066cadcb8abf93f94b.tar.gz |
querystring: simplify stringify method
PR-URL: https://github.com/nodejs/node/pull/26591
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/querystring/querystring-stringify.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/benchmark/querystring/querystring-stringify.js b/benchmark/querystring/querystring-stringify.js index 9f025c922a..6c5da0f464 100644 --- a/benchmark/querystring/querystring-stringify.js +++ b/benchmark/querystring/querystring-stringify.js @@ -3,8 +3,8 @@ const common = require('../common.js'); const querystring = require('querystring'); const bench = common.createBenchmark(main, { - type: ['noencode', 'encodemany', 'encodelast'], - n: [1e7], + type: ['noencode', 'encodemany', 'encodelast', 'array'], + n: [1e6], }); function main({ type, n }) { @@ -23,6 +23,11 @@ function main({ type, n }) { foo: 'bar', baz: 'quux', xyzzy: 'thu\u00AC' + }, + array: { + foo: [], + baz: ['bar'], + xyzzy: ['bar', 'quux', 'thud'] } }; const input = inputs[type]; |