Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Linux
Desktop
3 years ago
Test name Executions per second
String.fromCharCode.apply 1573.1 Ops/sec
String.fromCharCode 817.8 Ops/sec
bytesToBase64 483.5 Ops/sec
arr join 541.5 Ops/sec
byteArrayToString 1245.4 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString