for vs for await on non-promises

Benchmark publishedon

Setup

const input = [...Array(1000).keys()];

Test Runner

Initializing...

Testing in
Test CaseOps/sec
for
let sum = 0;
for (const x of input) {
	sum += x;
}
ready
for await
let sum = 0;
for await (const x of input) {
	sum += x;
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

Revision 1
publishedon