startsWith vs includesFastest: includes (4.9x faster)
163,787,552 ops/sec
33,662,716 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| startsWith | |
| includes |
| Test name | Executions per second |
|---|---|
| ✓ includes | 164,866,544 Ops/sec |
| startsWith | 68,501,880 Ops/sec |