Run details:
Mozilla/5.0 (Windows NT 5.1; rv:68.9) Gecko/20100101 Goanna/4.6 Firefox/68.9 Mypal/28.12.0
Firefox 68
Windows XP
Desktop
3 years ago
Test name Executions per second
character index 92205192.0 Ops/sec
charAt() 92837616.0 Ops/sec
slice() 21303428.0 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()