Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Linux
Desktop
2 years ago
Benchmark.js
String.fromCharCode on Array
55K/s
String.fromCharCode on Uint8Array
17K/s
TextDecoder on Uint8Array
10K/s
String.fromCodePoint on Array
9K/s
String.fromCodePoint on Uint8Array
7K/s
View exact numbers
| Test name |
Executions per second |
|
✓
String.fromCharCode on Array
|
55,075 Ops/sec |
|
String.fromCharCode on Uint8Array
|
17,384 Ops/sec |
|
TextDecoder on Uint8Array
|
9,725 Ops/sec |
|
String.fromCodePoint on Array
|
9,013 Ops/sec |
|
String.fromCodePoint on Uint8Array
|
7,386 Ops/sec |
Tests:
-
TextDecoder on Uint8Array
-
String.fromCharCode on Uint8Array
-
String.fromCharCode on Array
-
String.fromCodePoint on Uint8Array
-
String.fromCodePoint on Array