Sha256: 47ac59a5906707955fdadd9e87eef9366a46164615a5c72e425c71c19f2f38fb

Contents?: true

Size: 377 Bytes

Versions: 5

Compression:

Stored size: 377 Bytes

Contents

'use strict';
var common = require('../common.js');
var bench = common.createBenchmark(main, {
  millions: [2]
});

process.maxTickDepth = Infinity;

function main(conf) {
  var n = +conf.millions * 1e6;

  bench.start();
  process.nextTick(onNextTick);
  function onNextTick() {
    if (--n)
      process.nextTick(onNextTick);
    else
      bench.end(+conf.millions);
  }
}

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/benchmark/process/next-tick-depth.js
node-compiler-0.9.0 vendor/node-v7.2.1/benchmark/process/next-tick-depth.js
node-compiler-0.8.0 vendor/node-v7.2.0/benchmark/process/next-tick-depth.js
node-compiler-0.7.0 vendor/node-v6.9.1/benchmark/process/next-tick-depth.js
node-compiler-0.7.0 vendor/node-v7.1.0/benchmark/process/next-tick-depth.js