★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/f0186704cdNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
benchmark: (timers) refactor
PR-URL: #18320
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
BridgeAR authored and MylesBorins committed Feb 21, 2018
1 parent 28156e1 commit f0186704cdfac49ccfcc96a6ae63e97783d391a7
@@ -9,7 +9,7 @@ function main({ millions }) {
const N = millions * 1e6;

process.on('exit', function() {
bench.end(N / 1e6);
bench.end(millions);
});

function cb() {}
@@ -9,7 +9,7 @@ function main({ millions }) {
const N = millions * 1e6;

process.on('exit', function() {
bench.end(N / 1e6);
bench.end(millions);
});

function cb3(n, arg2, arg3) {
@@ -28,5 +28,5 @@ function main({ millions }) {
}

function cb() {
assert(false, 'Timer should not call callback');
assert.fail('Timer should not call callback');
}
@@ -22,5 +22,5 @@ function main({ millions }) {
}

function cb() {
assert(false, `Timer ${this._idleTimeout} should not call callback`);
assert.fail(`Timer ${this._idleTimeout} should not call callback`);
}
@@ -23,5 +23,5 @@ function main({ millions }) {
}

function cb() {
assert(false, `Timer ${this._idleTimeout} should not call callback`);
assert.fail(`Timer ${this._idleTimeout} should not call callback`);
}

0 comments on commit f018670

Please sign in to comment.