Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    RegEx.test
    String.includes
    String.match
    String.replace
    String.replace classic

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Windows
View result in a separate tab
String.includes
16.9M/s
String.replace classic
9.1M/s
RegEx.test
5.4M/s
String.match
3.5M/s
String.replace
1.5M/s
View exact numbers
Test name Executions per second
String.includes 16,879,302 Ops/sec
String.replace classic 9,062,069 Ops/sec
RegEx.test 5,425,184 Ops/sec
String.match 3,475,077 Ops/sec
String.replace 1,453,697 Ops/sec