Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
String.fromCharCode.apply 1308.8 Ops/sec
String.fromCharCode 260.4 Ops/sec
bytesToBase64 399.4 Ops/sec
arr join 237.9 Ops/sec
byteArrayToString 1423.9 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString