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
7 years ago
Test name Executions per second
RegExp#test 23358786.0 Ops/sec
String#indexOf 592175168.0 Ops/sec
String#match 10496912.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match