Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Windows
Desktop
3 months ago
Test name Executions per second
String.fromCharCode.apply 2581.2 Ops/sec
String.fromCharCode 1004.2 Ops/sec
bytesToBase64 290.0 Ops/sec
arr join 368.3 Ops/sec
byteArrayToString 638.2 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString