Iterating through small arrays

Benchmark created on


Preparation HTML

					

Test runner

Ready to run.

Testing in
TestOps/sec
forEach
var arr = new Array(100).fill('foo');
			
arr.forEach(() => null)			
ready
For loop
var arr = new Array(100).fill('foo');
				
for (val of arr){
	continue;
}
ready

Revisions

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