Skip to content

Commit

Permalink
benchmark: (timers) refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeAR committed Feb 1, 2018
1 parent 1b8ee8a commit 5aa2a2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benchmark/timers/set-immediate-breadth.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function main({ millions }) {
const N = millions * 1e6;

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

function cb() {}
Expand Down
2 changes: 1 addition & 1 deletion benchmark/timers/set-immediate-depth-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/timers/timers-cancel-pooled.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ function main({ millions }) {
}

function cb() {
assert(false, 'Timer should not call callback');
assert.fail('Timer should not call callback');
}
2 changes: 1 addition & 1 deletion benchmark/timers/timers-cancel-unpooled.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
2 changes: 1 addition & 1 deletion benchmark/timers/timers-insert-unpooled.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 5aa2a2f

Please sign in to comment.