Run details:
Mozilla/5.0 (Linux; Android 12; M2102J20SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.5481.192 Mobile Safari/537.36 OPR/74.1.3922.71199
Opera Mobile 74
Android
Mobile
2 years ago
Test name Executions per second
regex.exec 3638043.8 Ops/sec
string.match 3544971.2 Ops/sec
regex.test 4220164.5 Ops/sec
regex.match 1997123.5 Ops/sec
Script Preparation code:
Tests:
  • regex.exec

  • string.match

  • regex.test

  • regex.match