Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138
Windows
Desktop
one year ago
Benchmark.js
String.fromCharCode on Array
92K/s
String.fromCharCode on Uint8Array
39K/s
TextDecoder on Uint8Array
30K/s
String.fromCodePoint on Array
15K/s
String.fromCodePoint on Uint8Array
12K/s
View exact numbers
| Test name |
Executions per second |
|
✓
String.fromCharCode on Array
|
91,544 Ops/sec |
|
String.fromCharCode on Uint8Array
|
38,818 Ops/sec |
|
TextDecoder on Uint8Array
|
30,132 Ops/sec |
|
String.fromCodePoint on Array
|
14,941 Ops/sec |
|
String.fromCodePoint on Uint8Array
|
12,174 Ops/sec |
Tests:
-
TextDecoder on Uint8Array
-
String.fromCharCode on Uint8Array
-
String.fromCharCode on Array
-
String.fromCodePoint on Uint8Array
-
String.fromCodePoint on Array