Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135
Linux
Desktop
one year ago
Benchmark.js
byteArrayToString
4K/s
String.fromCharCode.apply
3K/s
arr join
1K/s
String.fromCharCode
916/s
bytesToBase64
418/s
View exact numbers
Test name Executions per second
byteArrayToString 3,836 Ops/sec
String.fromCharCode.apply 2,830 Ops/sec
arr join 1,354 Ops/sec
String.fromCharCode 916 Ops/sec
bytesToBase64 418 Ops/sec
Script Preparation code:
Tests: