HTML Preparation code:
Script Preparation code:
Tests:
  • for of

  • for in

  • for

  • while

  • forEach() with function

  • forEach() with closure

  • for, reversed

  • for, cached length

  • while, reversed

  • while, cached length

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for of
    for in
    for
    while
    forEach() with function
    forEach() with closure
    for, reversed
    for, cached length
    while, reversed
    while, cached length

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3833.89 Safari/537.36
Chrome 77 on Windows
View result in a separate tab
Test name Executions per second
for of 28751.1 Ops/sec
for in 9050.6 Ops/sec
for 17621.0 Ops/sec
while 18495.7 Ops/sec
forEach() with function 27712.8 Ops/sec
forEach() with closure 31470.1 Ops/sec
for, reversed 13056.6 Ops/sec
for, cached length 2666.2 Ops/sec
while, reversed 67979.2 Ops/sec
while, cached length 3160.7 Ops/sec


;