Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 OPR/78.0.4093.214
Opera 78
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
RegExp#test 46391644.0 Ops/sec
String#indexOf 971475520.0 Ops/sec
String#match 23235048.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match