Tests:

Historical Performance Data aggregated from 455 community runs

Desktop Results:
Chrome 401 runs
includes
171.7M/s
startsWith
45.3M/s

Fastest: includes (3.8x faster)

View exact numbers
  • includes: 171,709,472 ops/sec
  • startsWith: 45,265,924 ops/sec
Firefox 35 runs
startsWith
1556.4M/s
includes
1550.9M/s
View exact numbers
  • startsWith: 1,556,397,696 ops/sec
  • includes: 1,550,883,712 ops/sec
Safari 13 runs
startsWith
67.7M/s
includes
42.4M/s

Fastest: startsWith (1.6x faster)

View exact numbers
  • startsWith: 67,742,600 ops/sec
  • includes: 42,446,336 ops/sec
Mobile Results:
Chrome 6 runs
includes
65.3M/s
startsWith
33.4M/s

Fastest: includes (2.0x faster)

View exact numbers
  • includes: 65,279,952 ops/sec
  • startsWith: 33,381,428 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
    includes
    startsWith

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Windows
View result in a separate tab
includes
245.2M/s
startsWith
51.3M/s
View exact numbers
Test name Executions per second
includes 245,173,008 Ops/sec
startsWith 51,281,152 Ops/sec