Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Linux
Desktop
one year ago
Test name Executions per second
string.replace 2321093.0 Ops/sec
regexp.matchAll 1125736.9 Ops/sec
regexp.exec 1866441.8 Ops/sec
Tests:
  • string.replace

  • regexp.matchAll

  • regexp.exec