Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
Chrome 65
Windows 8.1
Other
2025 years ago
Test name Executions per second
RegExp#test 18914408.0 Ops/sec
String#indexOf 568395648.0 Ops/sec
String#match 12691696.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match