startsWith vs includesFastest: includes (1.7x faster)
174,315,488 ops/sec
99,798,056 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 | 1,325,337,216 Ops/sec |
| startsWith | 203,560,528 Ops/sec |