Script Preparation code:
Tests:
  • array[array.length - 1]

  • array.at(-1)

  • array[array.length - 1] fn

  • array.at(-1) fn

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0
Firefox 148 on Windows
View result in a separate tab
Test name Executions per second
array[array.length - 1] 3274011648.0 Ops/sec
array.at(-1) 2454609408.0 Ops/sec
array[array.length - 1] fn 3325238784.0 Ops/sec
array.at(-1) fn 2463201792.0 Ops/sec