.endsWith vs .includes14,809,547 ops/sec
13,732,921 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 | 13,732,921 Ops/sec |
| .endsWith | 13,111,808 Ops/sec |