Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.5000.0 Iron Safari/537.36
Chrome 98
Windows 8.1
Desktop
2 years ago
Test name Executions per second
charCodeAt(0) 13828254.0 Ops/sec
charCodeAt(300) 13783330.0 Ops/sec
[0] 13739611.0 Ops/sec
[10] 13819907.0 Ops/sec
Script Preparation code:
Tests:
  • charCodeAt(0)

  • charCodeAt(300)

  • [0]

  • [10]