Run details:
Mozilla/5.0 (Linux; Android 11; Android SDK built for x86 Build/RSR1.210210.001.A1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
2 years ago
Test name Executions per second
String.fromCharCode.apply 456.1 Ops/sec
String.fromCharCode 23.5 Ops/sec
bytesToBase64 43.9 Ops/sec
arr join 22.1 Ops/sec
byteArrayToString 481.6 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString