Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
Chrome 100
Mac OS X 10.13.6
Desktop
2 years ago
Test name Executions per second
String.fromCharCode.apply 1169.5 Ops/sec
String.fromCharCode 41.5 Ops/sec
bytesToBase64 78.3 Ops/sec
arr join 37.7 Ops/sec
byteArrayToString 1224.1 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString