Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
array[array.length - 1] 5171816.0 Ops/sec
array.at(-1) 10422810.0 Ops/sec
Script Preparation code:
Tests:
  • array[array.length - 1]

  • array.at(-1)