pop-push check vs last-index checkFastest: pop-push check (1.3x faster)
5,228,146 ops/sec
4,177,010 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| pop-push check | |
| last-index check |
| Test name | Executions per second |
|---|---|
| ✓ pop-push check | 68,508,768 Ops/sec |
| last-index check | 4,686,122 Ops/sec |