Skip to content

Commit

Permalink
benchmark,test: remove output from readable-async-iterator benchmark
Browse files Browse the repository at this point in the history
Extra output makes test-benchmark-streams fail. Change console.log() to
console.assert().

Fixes: nodejs#34409

PR-URL: nodejs#34411
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Robert Nagy <[email protected]>
  • Loading branch information
Trott committed Jul 17, 2020
1 parent 5aeaff6 commit d10c59f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions benchmark/streams/readable-async-iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ async function main({ n, sync }) {
}
}

// Side effect to ensure V8 does not optimize away the
// loop as a noop.
console.log(x);
// Use x to ensure V8 does not optimize away the loop as a noop.
console.assert(x);

bench.end(n);
}

0 comments on commit d10c59f

Please sign in to comment.