aboutsummaryrefslogtreecommitdiff
path: root/benchmark/timers/timers-depth.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2017-12-30 03:56:01 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-01-23 01:29:19 +0100
commit5dc289b3f0339c6bf2360c98fc9e233ba635e6cb (patch)
tree828665dcfbed46840a80043cdee0323e6a6a5edf /benchmark/timers/timers-depth.js
parente49d86437d6086bd6c98f2d615fbdf44e031a684 (diff)
downloadandroid-node-v8-5dc289b3f0339c6bf2360c98fc9e233ba635e6cb.tar.gz
android-node-v8-5dc289b3f0339c6bf2360c98fc9e233ba635e6cb.tar.bz2
android-node-v8-5dc289b3f0339c6bf2360c98fc9e233ba635e6cb.zip
benchmark: (timers) 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/timers/timers-depth.js')
-rw-r--r--benchmark/timers/timers-depth.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/timers/timers-depth.js b/benchmark/timers/timers-depth.js
index 42dc652b27..ca74eee393 100644
--- a/benchmark/timers/timers-depth.js
+++ b/benchmark/timers/timers-depth.js
@@ -5,8 +5,8 @@ const bench = common.createBenchmark(main, {
thousands: [1],
});
-function main(conf) {
- const N = +conf.thousands * 1e3;
+function main({ thousands }) {
+ const N = thousands * 1e3;
var n = 0;
bench.start();
setTimeout(cb, 1);