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
4K/s
String.fromCharCode.apply
3K/s
bytesToBase64
2K/s
String.fromCharCode
2K/s
arr join
595/s
View exact numbers
Test name Executions per second
byteArrayToString 3,723 Ops/sec
String.fromCharCode.apply 3,376 Ops/sec
bytesToBase64 2,380 Ops/sec
String.fromCharCode 1,787 Ops/sec
arr join 595 Ops/sec
Script Preparation code:
Tests: