Run details:
Mozilla/5.0 (Linux; arm_64; Android 10; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 YaBrowser/21.3.1.128.00 SA/3 Mobile Safari/537.36
Yandex Browser 21
Android
Mobile
3 years ago
Test name Executions per second
String.fromCharCode.apply 306.0 Ops/sec
String.fromCharCode 23.0 Ops/sec
bytesToBase64 46.0 Ops/sec
arr join 21.1 Ops/sec
byteArrayToString 290.7 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString