.endsWith vs .includesFastest: .endsWith (1.4x faster)
9,519,974 ops/sec
6,688,238 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| .endsWith | |
| .includes |
| Test name | Executions per second |
|---|---|
| ✓ .endsWith | 9,519,974 Ops/sec |
| .includes | 6,688,238 Ops/sec |