Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    original
    ES5 replace match map
    match without replace
    iteration with replace
    looping with exec
    non regex
    bluetooth-le

    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/129.0.0.0 Safari/537.36
Chrome 129 on Windows
View result in a separate tab
bluetooth-le
325K/s
non regex
4K/s
original
2K/s
match without replace
846/s
looping with exec
810/s
iteration with replace
476/s
ES5 replace match map
438/s
View exact numbers
Test name Executions per second
bluetooth-le 324,824 Ops/sec
non regex 3,652 Ops/sec
original 1,665 Ops/sec
match without replace 846 Ops/sec
looping with exec 810 Ops/sec
iteration with replace 476 Ops/sec
ES5 replace match map 438 Ops/sec