Script Preparation code:
Tests:
  • trim and always replace

  • trim and conditionally replace

  • trim and conditionally replace with if

  • always replace and trim

  • conditionally trim and conditionally replace

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    trim and always replace
    trim and conditionally replace
    trim and conditionally replace with if
    always replace and trim
    conditionally trim and conditionally replace

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
trim and always replace 2453.7 Ops/sec
trim and conditionally replace 2604.8 Ops/sec
trim and conditionally replace with if 2607.7 Ops/sec
always replace and trim 2255.7 Ops/sec
conditionally trim and conditionally replace 2641.4 Ops/sec