Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3738.0 Safari/537.36 Edg/75.0.107.0
Chrome 75
Windows
Desktop
4 years ago
Test name Executions per second
RegExp#test 21912674.0 Ops/sec
String#indexOf 517831392.0 Ops/sec
String#match 5000757.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match