From f2ba06db92ea561e23f93e85ba29404abfe74b1a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 12 May 2017 09:06:57 -0700 Subject: [PATCH] benchmark: remove redundant timers benchmark The immediate.js benchmark with `type` set to `depth` measures the same thing as set-immediate-depth.js. Remove the redundancy.` PR-URL: https://github.com/nodejs/node/pull/13009 Reviewed-By: Joyee Cheung Reviewed-By: Refael Ackermann --- benchmark/timers/set-immediate-depth.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 benchmark/timers/set-immediate-depth.js diff --git a/benchmark/timers/set-immediate-depth.js b/benchmark/timers/set-immediate-depth.js deleted file mode 100644 index 12b9cdc7e6fd65..00000000000000 --- a/benchmark/timers/set-immediate-depth.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -const common = require('../common.js'); -const bench = common.createBenchmark(main, { - millions: [10] -}); - -function main(conf) { - const N = +conf.millions * 1e6; - let n = N; - - process.on('exit', function() { - bench.end(N / 1e6); - }); - - bench.start(); - setImmediate(onNextTick); - function onNextTick() { - if (--n) - setImmediate(onNextTick); - } -}