Run details:
Mozilla/5.0 (Linux; Android 9; Mi A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.73 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
String.fromCharCode.apply 198.4 Ops/sec
String.fromCharCode 6.3 Ops/sec
bytesToBase64 12.2 Ops/sec
arr join 5.8 Ops/sec
byteArrayToString 228.3 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString