array.prototype.at() vs array[array.length - 1]41,971,268 ops/sec
38,683,712 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| array.prototype.at() | |
| array[array.length - 1] |
| Test name | Executions per second |
|---|---|
| ✓ array[array.length - 1] | 1,111,641,088 Ops/sec |
| array.prototype.at() | 782,290,560 Ops/sec |