diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-12-30 03:57:38 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-01-23 01:29:27 +0100 |
commit | fd45187d345c8c11533da52b0c8c8b658dd40d80 (patch) | |
tree | 106a4da65424fe23a5fd636e30990e30efa631a6 /benchmark/misc/object-property-bench.js | |
parent | 50d2554dd183d6fc58d55b2c7c0aa1a086c8253b (diff) | |
download | android-node-v8-fd45187d345c8c11533da52b0c8c8b658dd40d80.tar.gz android-node-v8-fd45187d345c8c11533da52b0c8c8b658dd40d80.tar.bz2 android-node-v8-fd45187d345c8c11533da52b0c8c8b658dd40d80.zip |
benchmark: (misc) use destructuring
PR-URL: https://github.com/nodejs/node/pull/18250
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/misc/object-property-bench.js')
-rw-r--r-- | benchmark/misc/object-property-bench.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/misc/object-property-bench.js b/benchmark/misc/object-property-bench.js index d6afd4e9c0..37da82d887 100644 --- a/benchmark/misc/object-property-bench.js +++ b/benchmark/misc/object-property-bench.js @@ -59,10 +59,10 @@ function runSymbol(n) { bench.end(n / 1e6); } -function main(conf) { - const n = +conf.millions * 1e6; +function main({ millions, method }) { + const n = millions * 1e6; - switch (conf.method) { + switch (method) { // '' is a default case for tests case '': case 'property': |