Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60
Mac OS X 10.13
Desktop
6 years ago
Test name Executions per second
Using Array.prototype.map() 464.1 Ops/sec
Using traditional for loop 379.6 Ops/sec
Using ES6 for..of 498.8 Ops/sec
Script Preparation code:
Tests:
  • Using Array.prototype.map()

  • Using traditional for loop

  • Using ES6 for..of


;