Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 3a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Mobile Safari/537.36 EdgA/100.0.1185.43
Chrome Mobile 100
Android
Mobile
2 years ago
Test name Executions per second
character index 2005566.1 Ops/sec
charAt() 2016507.0 Ops/sec
slice() 1895157.1 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()