Run details:
Mozilla/5.0 (X11; CrOS x86_64 14816.64.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Chrome OS 14816.64.0
Desktop
2 years ago
Test name Executions per second
String.fromCharCode.apply 361.8 Ops/sec
String.fromCharCode 9.7 Ops/sec
bytesToBase64 21.1 Ops/sec
arr join 9.0 Ops/sec
byteArrayToString 457.3 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString