Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0
Firefox 50
Windows 7
Other
7 years ago
Test name Executions per second
indexOf 60637.6 Ops/sec
map with forEach 3073.0 Ops/sec
map with loop 2534.5 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • map with forEach

  • map with loop


;