Script Preparation code:
Tests:
  • foreach with callBack

  • foreach

  • for with keeping length

  • for

  • for / of

  • for / in

  • map

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    foreach with callBack
    foreach
    for with keeping length
    for
    for / of
    for / in
    map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80 on Windows
View result in a separate tab
Test name Executions per second
foreach with callBack 168653.4 Ops/sec
foreach 233674.7 Ops/sec
for with keeping length 121821.5 Ops/sec
for 91857.0 Ops/sec
for / of 98421.0 Ops/sec
for / in 11097.7 Ops/sec
map 65844.3 Ops/sec