array[0] vs array.at(0)159,828,992 ops/sec
157,786,112 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| array[0] | |
| array.at(0) |
| Test name | Executions per second |
|---|---|
| ✓ array.at(0) | 80,050,528 Ops/sec |
| array[0] | 43,389,528 Ops/sec |