Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
Chrome 55
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
RegExp#test 10529471.0 Ops/sec
String#indexOf 19923578.0 Ops/sec
String#match 9513584.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match