Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0
Firefox 51
Mac OS X 10.12
Other
7 years ago
Test name Executions per second
RegExp#test 4641254.5 Ops/sec
String#indexOf 35054864.0 Ops/sec
String#match 3892415.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match