Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7
Safari 9
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
indexOf 5525171.5 Ops/sec
match 3983143.8 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • match