Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38
Safari 11
Mac OS X 10.13
Other
7 years ago
Test name Executions per second
RegExp#test 51612700.0 Ops/sec
String#indexOf 43930548.0 Ops/sec
String#match 9749616.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match