Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 6 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
character index 6069077.5 Ops/sec
charAt() 6090380.0 Ops/sec
slice() 5414140.5 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()


;