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 (iPhone; CPU iPhone OS 15_8_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
Mobile Safari 15 on iOS 15.8.3
View result in a separate tab
non regex
4K/s
original
747/s
match without replace
729/s
looping with exec
609/s
iteration with replace
396/s
bluetooth-le
390/s
ES5 replace match map
340/s
View exact numbers
Test name Executions per second
non regex 3,583 Ops/sec
original 747 Ops/sec
match without replace 729 Ops/sec
looping with exec 609 Ops/sec
iteration with replace 396 Ops/sec
bluetooth-le 390 Ops/sec
ES5 replace match map 340 Ops/sec