Script Preparation code:
Tests:
  • regular for (;;)

  • for..in

  • for..of

  • forEach()

  • map()

  • reduce()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    regular for (;;)
    for..in
    for..of
    forEach()
    map()
    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/119.0.0.0 Safari/537.36
Chrome 119 on Windows
View result in a separate tab
Test name Executions per second
regular for (;;) 5094.0 Ops/sec
for..in 4120.9 Ops/sec
for..of 4992.3 Ops/sec
forEach() 4927.9 Ops/sec
map() 4624.0 Ops/sec
reduce() 55952.6 Ops/sec