diff options
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]; |