Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
Safari 18
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
String.fromCharCode on Array
81K/s
String.fromCodePoint on Array
48K/s
TextDecoder on Uint8Array
15K/s
String.fromCharCode on Uint8Array
14K/s
String.fromCodePoint on Uint8Array
13K/s
View exact numbers
| Test name |
Executions per second |
|
✓
String.fromCharCode on Array
|
80,529 Ops/sec |
|
String.fromCodePoint on Array
|
47,818 Ops/sec |
|
TextDecoder on Uint8Array
|
14,806 Ops/sec |
|
String.fromCharCode on Uint8Array
|
14,104 Ops/sec |
|
String.fromCodePoint on Uint8Array
|
12,601 Ops/sec |
Tests:
-
TextDecoder on Uint8Array
-
String.fromCharCode on Uint8Array
-
String.fromCharCode on Array
-
String.fromCodePoint on Uint8Array
-
String.fromCodePoint on Array