Script Preparation code:
Tests:
  • Map replace

  • Regex replace

  • Make array replace

  • Make unfilled array replace

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Map replace
    Regex replace
    Make array replace
    Make unfilled array replace

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.42
Chrome 113 on Windows
View result in a separate tab
Test name Executions per second
Map replace 797324.7 Ops/sec
Regex replace 297964.7 Ops/sec
Make array replace 874865.6 Ops/sec
Make unfilled array replace 1241508.8 Ops/sec