includes vs startsWithFastest: includes (33.5x faster)
178,522,944 ops/sec
5,324,029 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 | 83,383,232 Ops/sec |
| startsWith | 2,560,368 Ops/sec |