diff options
author | Brian White <mscdex@mscdex.net> | 2020-05-31 08:18:59 +0300 |
---|---|---|
committer | Brian White <mscdex@mscdex.net> | 2020-06-13 01:21:44 +0300 |
commit | 7b46793eeedd24e576fa1aa7982b436e5cd37edd (patch) | |
tree | 71fc5157fd92ed993d905adcf7e0cd00b8e2527b /benchmark | |
parent | 76ceaff270a76e9e39e23680a00fe5155c51b57f (diff) |
querystring: improve stringify() performance
PR-URL: https://github.com/nodejs/node/pull/33669
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
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 be81f67fa82..d1b724fcf2c 100644 --- a/benchmark/querystring/querystring-stringify.js +++ b/benchmark/querystring/querystring-stringify.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const querystring = require('querystring'); const bench = common.createBenchmark(main, { - type: ['noencode', 'encodemany', 'encodelast', 'array'], + type: ['noencode', 'encodemany', 'encodelast', 'array', 'multiprimitives'], n: [1e6], }); @@ -28,7 +28,12 @@ function main({ type, n }) { foo: [], baz: ['bar'], xyzzy: ['bar', 'quux', 'thud'] - } + }, + multiprimitives: { + foo: false, + bar: -13.37, + baz: '', + }, }; const input = inputs[type]; |