Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3187.0 Safari/537.36
Chrome 62
Mac OS X 10.12.2
Other
6 years ago
Test name Executions per second
RegExp#test 23358790.0 Ops/sec
String#indexOf 592175200.0 Ops/sec
String#match 10496910.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match