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: #34409

PR-URL: #34411
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
  • 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
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.