Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:58.0) Gecko/20100101 Firefox/58.0
Firefox 58
Mac OS X 10.13
Other
7 years ago
Test name Executions per second
RegExp#test 29543370.0 Ops/sec
String#indexOf 40632848.0 Ops/sec
String#match 14537142.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match