Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Linux
Desktop
2 years ago
Benchmark.js
TextDecoder on Uint8Array
21K/s
String.fromCharCode on Array
13K/s
String.fromCodePoint on Array
10K/s
String.fromCharCode on Uint8Array
8K/s
String.fromCodePoint on Uint8Array
7K/s
View exact numbers
Test name Executions per second
TextDecoder on Uint8Array 21,103 Ops/sec
String.fromCharCode on Array 12,562 Ops/sec
String.fromCodePoint on Array 9,588 Ops/sec
String.fromCharCode on Uint8Array 7,944 Ops/sec
String.fromCodePoint on Uint8Array 7,349 Ops/sec
Script Preparation code:
Tests: