Tests:
  • string.replace

  • regexp.matchAll

  • regexp.exec

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    string.replace
    regexp.matchAll
    regexp.exec

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0
Firefox 149 on Linux
View result in a separate tab
Test name Executions per second
string.replace 5812066.0 Ops/sec
regexp.matchAll 2778618.0 Ops/sec
regexp.exec 4916916.5 Ops/sec