Script Preparation code:
Tests:
  • for

  • for (less closure)

  • for of

  • for of (less closure)

  • forEach

  • forEach (less closure)

  • reduce

  • reduce (less closure)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for
    for (less closure)
    for of
    for of (less closure)
    forEach
    forEach (less closure)
    reduce
    reduce (less closure)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Mobile/15E148 Safari/604.1
Mobile Safari 13 on iOS 13.7
View result in a separate tab
Test name Executions per second
for 407.1 Ops/sec
for (less closure) 346.4 Ops/sec
for of 783.1 Ops/sec
for of (less closure) 862.3 Ops/sec
forEach 896.7 Ops/sec
forEach (less closure) 912.0 Ops/sec
reduce 976.7 Ops/sec
reduce (less closure) 914.7 Ops/sec


;