Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
11 months ago
Test name Executions per second
CharAt (0) 270469.6 Ops/sec
[0] 273480.2 Ops/sec
CharAt (n) 268883.1 Ops/sec
[n] 269790.1 Ops/sec
charAt(len-1) 264770.8 Ops/sec
[len-1] 265267.1 Ops/sec
Script Preparation code:
Tests:
  • CharAt (0)

  • [0]

  • CharAt (n)

  • [n]

  • charAt(len-1)

  • [len-1]


;