Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Windows
Desktop
one year ago
Benchmark.js
String.fromCharCode on Array
16K/s
String.fromCharCode on Uint8Array
10K/s
TextDecoder on Uint8Array
4K/s
String.fromCodePoint on Uint8Array
2K/s
String.fromCodePoint on Array
2K/s
View exact numbers
| Test name |
Executions per second |
|
✓
String.fromCharCode on Array
|
15,823 Ops/sec |
|
String.fromCharCode on Uint8Array
|
10,190 Ops/sec |
|
TextDecoder on Uint8Array
|
4,407 Ops/sec |
|
String.fromCodePoint on Uint8Array
|
1,873 Ops/sec |
|
String.fromCodePoint on Array
|
1,569 Ops/sec |
Tests:
-
TextDecoder on Uint8Array
-
String.fromCharCode on Uint8Array
-
String.fromCharCode on Array
-
String.fromCodePoint on Uint8Array
-
String.fromCodePoint on Array