includes vs startsWithFastest: includes (3.7x faster)
168,094,240 ops/sec
45,866,280 ops/sec
1,587,701,632 ops/sec
1,570,348,544 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| includes | |
| startsWith |
| Test name | Executions per second |
|---|---|
| ✓ includes | 265,022,512 Ops/sec |
| startsWith | 63,552,328 Ops/sec |