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.indexOf

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147 on Windows
View result in a separate tab
String.indexOf
1267.7M/s
String.includes
1257.4M/s
RegEx.test
31.4M/s
String.match
15.9M/s
View exact numbers
Test name Executions per second
String.indexOf 1,267,748,480 Ops/sec
String.includes 1,257,394,560 Ops/sec
RegEx.test 31,394,680 Ops/sec
String.match 15,864,405 Ops/sec