Script Preparation code:
Tests:
  • Replace

  • Replace All

  • Split+Join

  • Replace from var

  • Replace all from var

  • Split+join from var

  • Replace with template literal

  • Split+join with template literal

  • Replace with regex

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Replace
    Replace All
    Split+Join
    Replace from var
    Replace all from var
    Split+join from var
    Replace with template literal
    Split+join with template literal
    Replace with regex

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Goanna/6.7 Firefox/128.0 PaleMoon/33.8.0
Pale Moon (Firefox Variant) 33 on Windows
View result in a separate tab
Test name Executions per second
Replace 2186013.5 Ops/sec
Replace All 1629302.0 Ops/sec
Split+Join 1713948.2 Ops/sec
Replace from var 2173808.5 Ops/sec
Replace all from var 1572099.5 Ops/sec
Split+join from var 1162375.9 Ops/sec
Replace with template literal 2200713.0 Ops/sec
Split+join with template literal 1056602.8 Ops/sec
Replace with regex 968771.4 Ops/sec