Run details:
Mozilla/5.0 (Linux; Android 4.2.2; SM-T110 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36 OPR/50.6.2426.201126
Opera 50
Android 4.2.2
Tablet
2 years ago
Test name Executions per second
String.fromCharCode.apply 54.9 Ops/sec
String.fromCharCode 2.7 Ops/sec
bytesToBase64 5.4 Ops/sec
arr join 2.7 Ops/sec
byteArrayToString 57.9 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode.apply

  • String.fromCharCode

  • bytesToBase64

  • arr join

  • byteArrayToString