Run details:
Mozilla/5.0 (Linux; Android 11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
String.fromCharCode & btoa 419863.1 Ops/sec
base64ArrayBuffer function 994669.6 Ops/sec
Script Preparation code:
Tests:
  • String.fromCharCode & btoa

  • base64ArrayBuffer function