Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0
Firefox 90
Windows 7
Desktop
3 years ago
Test name Executions per second
regex.exec 6696758.5 Ops/sec
string.match 5401176.5 Ops/sec
Script Preparation code:
Tests:
  • regex.exec

  • string.match