Run details:
Mozilla/5.0 (Linux; Android 10; COL-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
4 years ago
Test name Executions per second
character index 1819280.5 Ops/sec
charAt() 1628535.2 Ops/sec
slice() 1349363.0 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()