Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52
Mac OS X 10.11.3
Other
8 years ago
Test name Executions per second
indexOf 3565058.8 Ops/sec
match 3269451.5 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • match