Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for i < length
    .forEach(t)
    for..of
    for t = array[i]
    for i=0; i in array
    for i in array,
    .reduce

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Windows
View result in a separate tab
for i in array,
374/s
for i=0; i in array
257/s
for i < length
253/s
for..of
251/s
for t = array[i]
251/s
.forEach(t)
248/s
.reduce
235/s
View exact numbers
Test name Executions per second
for i in array, 374 Ops/sec
for i=0; i in array 257 Ops/sec
for i < length 253 Ops/sec
for..of 251 Ops/sec
for t = array[i] 251 Ops/sec
.forEach(t) 248 Ops/sec
.reduce 235 Ops/sec