Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
Chrome Mobile 121
Android
Mobile
11 months ago
Test name Executions per second
character index 3649182.8 Ops/sec
charAt() 3558338.2 Ops/sec
slice() 3734007.5 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()