Script Preparation code:
Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
String.includes
79.8M/s
RegEx.test
33.7M/s
String.match
9.7M/s

Fastest: String.includes (8.2x faster)

View exact numbers
  • String.includes: 79,800,344 ops/sec
  • RegEx.test: 33,680,112 ops/sec
  • String.match: 9,673,724 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 20 days ago)
Mozilla/5.0 (Android 17; Mobile; rv:154.0) Gecko/154.0 Firefox/154.0
Firefox Mobile 154 on Android
View result in a separate tab
String.includes
1369.2M/s
RegEx.test
15.8M/s
String.match
11.0M/s
View exact numbers
Test name Executions per second
String.includes 1,369,186,688 Ops/sec
RegEx.test 15,812,948 Ops/sec
String.match 10,994,641 Ops/sec