Script Preparation code:
Tests:
  • Using Array.prototype.map()

  • Using traditional for loop

  • Using ES6 for..of

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using Array.prototype.map()
    Using traditional for loop
    Using ES6 for..of

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60 on Mac OS X 10.13
View result in a separate tab
Test name Executions per second
Using Array.prototype.map() 484.9 Ops/sec
Using traditional for loop 466.3 Ops/sec
Using ES6 for..of 458.9 Ops/sec


;