Script Preparation code:
Tests:

Historical Performance Data aggregated from 24 community runs

Desktop Results:
Chrome 24 runs
array[array.length - 1]
42.0M/s
array.prototype.at()
38.7M/s
View exact numbers
  • array[array.length - 1]: 41,971,268 ops/sec
  • array.prototype.at() : 38,683,712 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    array.prototype.at()
    array[array.length - 1]

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147 on Windows
View result in a separate tab
array[array.length - 1]
1111.6M/s
array.prototype.at()
782.3M/s
View exact numbers
Test name Executions per second
array[array.length - 1] 1,111,641,088 Ops/sec
array.prototype.at() 782,290,560 Ops/sec