Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89
Fedora
Desktop
3 years ago
Test name Executions per second
character index 3655876.0 Ops/sec
charAt() 3772012.5 Ops/sec
slice() 4161619.2 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()