Script Preparation code:
Tests:

Historical Performance Data aggregated from 39 community runs

Desktop Results:
Chrome 33 runs
String.includes
181.8M/s
RegEx.test
52.3M/s
String.match
30.4M/s

Fastest: String.includes (6.0x faster)

View exact numbers
  • String.includes: 181,753,712 ops/sec
  • RegEx.test: 52,324,312 ops/sec
  • String.match: 30,442,656 ops/sec
Firefox 6 runs
String.includes
2740.0M/s
RegEx.test
60.4M/s
String.match
33.7M/s

Fastest: String.includes (81.2x faster)

View exact numbers
  • String.includes: 2,739,950,592 ops/sec
  • RegEx.test: 60,426,416 ops/sec
  • String.match: 33,724,172 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: 15 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5.2 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
String.includes
775.2M/s
RegEx.test
390.1M/s
String.match
141.7M/s
View exact numbers
Test name Executions per second
String.includes 775,188,352 Ops/sec
RegEx.test 390,073,184 Ops/sec
String.match 141,672,944 Ops/sec