js-array-beercss (v5)

Revision 5 of this benchmark created on


Setup

const list = [];
for(let i=0; i<10000; i++) list.push(i);

Test runner

Ready to run.

Testing in
TestOps/sec
for of
for(let item of list) {}
ready
for i
for(let i=0; i<list.length; i++) {}
ready
for i, n
for(let i=0, n=list.length; i<n; i++) {}
ready
forEach
list.forEach(item => {});
ready

Revisions

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