testing

Benchmark created on


Description

test

Setup

let array = [];
let sum= 0;
for (let i = 0; i < 1000000000; i++){
	array.push(i);
}

Test runner

Ready to run.

Testing in
TestOps/sec
test 1

for (let i = 0; i < array.length; i++){
	sum += i;
}
ready
test 2
array.forEach(element => {
	sum += element;
});
ready

Revisions

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