Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Windows
Desktop
2 years ago
Test name Executions per second
a[n] 417369664.0 Ops/sec
n in a 418131200.0 Ops/sec
a.length-1==n 419654240.0 Ops/sec
a.at(-1)==a[n] 47705744.0 Ops/sec
Tests:
  • a[n]

  • n in a

  • a.length-1==n

  • a.at(-1)==a[n]