Sha256: b8052b1659b4404144918bf496d2f007c55b33d6df7ead12e1b095ca8d2225a8

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

'use strict';
var common = require('../common.js');

var bench = common.createBenchmark(main, {
  thousands: [500],
});

function main(conf) {
  var N = +conf.thousands * 1e3;
  var n = 0;
  bench.start();
  function cb() {
    n++;
    if (n === N)
      bench.end(N / 1e3);
  }
  for (var i = 0; i < N; i++) {
    setTimeout(cb, 1);
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/benchmark/timers/timers-breadth.js
node-compiler-0.9.0 vendor/node-v7.2.1/benchmark/timers/timers-breadth.js
node-compiler-0.8.0 vendor/node-v7.2.0/benchmark/timers/timers-breadth.js