Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Mac OS X 10.15.7
Desktop
11 months ago
Test name Executions per second
CharAt (0) 412316.9 Ops/sec
[0] 414105.2 Ops/sec
CharAt (n) 419110.2 Ops/sec
[n] 420768.9 Ops/sec
charAt(len-1) 404988.8 Ops/sec
[len-1] 419031.5 Ops/sec
Script Preparation code:
Tests:
  • CharAt (0)

  • [0]

  • CharAt (n)

  • [n]

  • charAt(len-1)

  • [len-1]


;