Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136
Windows
Desktop
one year ago
Benchmark.js
byteArrayToString
3K/s
String.fromCharCode.apply
2K/s
bytesToBase64
1K/s
String.fromCharCode
1K/s
arr join
390/s
View exact numbers
Test name Executions per second
byteArrayToString 2,853 Ops/sec
String.fromCharCode.apply 2,497 Ops/sec
bytesToBase64 1,480 Ops/sec
String.fromCharCode 1,140 Ops/sec
arr join 390 Ops/sec
Script Preparation code:
Tests: