Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
Firefox 56
Windows
Desktop
2 years ago
Test name Executions per second
String.fromCharCode.apply 221.2 Ops/sec
String.fromCharCode 214.4 Ops/sec
bytesToBase64 327.1 Ops/sec
arr join 168.3 Ops/sec
byteArrayToString 244.3 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString