Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Chrome 143
Windows
Desktop
3 months ago
Test name Executions per second
string.replace 3915239.5 Ops/sec
regexp.matchAll 1238920.4 Ops/sec
regexp.exec 2216225.2 Ops/sec
Tests:
  • string.replace

  • regexp.matchAll

  • regexp.exec