Run details:
Mozilla/5.0 (Linux; Android 13; Pixel 6 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Mobile Safari/537.36
Chrome Mobile 105
Android
Mobile
2 years ago
Test name Executions per second
String.fromCharCode.apply 1001.1 Ops/sec
String.fromCharCode 31.8 Ops/sec
bytesToBase64 67.5 Ops/sec
arr join 27.9 Ops/sec
byteArrayToString 992.0 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString