Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for of

  • for in

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    foreach
    for
    map
    for of
    for in

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36
Chrome 91 on Windows 7
View result in a separate tab
Test name Executions per second
foreach 5210.3 Ops/sec
for 2898.9 Ops/sec
map 4958.1 Ops/sec
for of 5572.2 Ops/sec
for in 2445.0 Ops/sec