Script Preparation code:
Tests:
  • for element of SMALL

  • for const element of SMALL

  • myArr forEach SMALL

  • array index SMALL

  • map

  • forEach ES6 SMALL

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for element of SMALL
    for const element of SMALL
    myArr forEach SMALL
    array index SMALL
    map
    forEach ES6 SMALL

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Firefox 66 on Windows 7
View result in a separate tab
Test name Executions per second
for element of SMALL 7568436.0 Ops/sec
for const element of SMALL 15427500.0 Ops/sec
myArr forEach SMALL 50719700.0 Ops/sec
array index SMALL 35450740.0 Ops/sec
map 18077240.0 Ops/sec
forEach ES6 SMALL 52956180.0 Ops/sec