Run details:
Mozilla/5.0 (Linux; arm_64; Android 13; SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 YaBrowser/22.11.6.41.00 SA/3 Mobile Safari/537.36
Yandex Browser 22
Android
Mobile
2 years ago
Test name Executions per second
character index 3486921.0 Ops/sec
charAt() 3483588.8 Ops/sec
slice() 3487421.0 Ops/sec
Script Preparation code:
Tests:
  • character index

  • charAt()

  • slice()