Run details:
Mozilla/5.0 (Linux; Android 8.1.0; 5041C Build/OPM1.171019.011;) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.126 Mobile Safari/537.36
Chrome Mobile 66
Android 8.1.0
Mobile
2 years ago
Test name Executions per second
character index 278591.8 Ops/sec
charAt() 305497.3 Ops/sec
slice() 266019.1 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()