Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36
Chrome 88
Mac OS X 10.13.6
Desktop
3 years ago
Test name Executions per second
charCodeAt(0) 10511016.0 Ops/sec
charCodeAt(300) 10861535.0 Ops/sec
[0] 10820731.0 Ops/sec
[10] 10920424.0 Ops/sec
Script Preparation code:
Tests:
  • charCodeAt(0)

  • charCodeAt(300)

  • [0]

  • [10]


;