Run details:
Mozilla/5.0 (Linux; Android 11; GM1911) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
character index 4668269.0 Ops/sec
charAt() 2482298.8 Ops/sec
slice() 748302.6 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()