Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
Chrome 54
Mac OS X 10.12.2
Other
7 years ago
Test name Executions per second
indexOf 47998.3 Ops/sec
map new each pass 45738.9 Ops/sec
map cached 81810.6 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • map new each pass

  • map cached


;