Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Fedora
Desktop
2 years ago
Test name Executions per second
RegEx.test() 13856082.0 Ops/sec
String.search() 12285936.0 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test()

  • String.search()