.endsWith vs .includes9,739,817 ops/sec
9,692,223 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 |
|---|---|
| ✓ .includes | 6,853,924 Ops/sec |
| .endsWith | 6,600,557 Ops/sec |