Run details:
Mozilla/5.0 (Linux; Android 8.1.0; itel A52) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36
Chrome Mobile 70
Android 8.1.0
Mobile
3 years ago
Test name Executions per second
character index 320251.8 Ops/sec
charAt() 281987.7 Ops/sec
slice() 316298.7 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()