Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    exec() clean
    exec() fair using substring
    search() and test() using substring
    search() and test() using substr
    search() and test() using slice

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
exec() clean
25.8M/s
exec() fair using substring
9.5M/s
search() and test() using slice
7.8M/s
search() and test() using substr
7.8M/s
search() and test() using substring
7.7M/s
View exact numbers
Test name Executions per second
exec() clean 25,769,972 Ops/sec
exec() fair using substring 9,452,864 Ops/sec
search() and test() using slice 7,806,752 Ops/sec
search() and test() using substr 7,798,870 Ops/sec
search() and test() using substring 7,749,415 Ops/sec