Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36
Chrome 58
Mac OS X 10.12.4
Other
7 years ago
Test name Executions per second
indexOf 18355.1 Ops/sec
map with forEach 1307.5 Ops/sec
map with loop 1895.5 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • map with forEach

  • map with loop


;