simple loop condition vs array length

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
for in
for(var b in Array(50).fill()) 1++
ready
for count
for(var b =0; b < 50; b++) 1++
ready
for count split
for(var b =0; b < 25; b++) { 1++; 1++ }
ready

Revisions

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