Run details:
Mozilla/5.0 (Linux; Android 11; SM-A405FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.80 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
3 years ago
Test name Executions per second
character index 1480628.0 Ops/sec
charAt() 1481655.1 Ops/sec
slice() 1426853.8 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()