.endsWith vs .includes vs ===9,128,045 ops/sec
8,770,217 ops/sec
8,686,622 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 |
|---|---|
| ✓ === | 898,561,152 Ops/sec |
| .endsWith | 798,909,824 Ops/sec |
| .includes | 760,425,920 Ops/sec |