TextDecoder vs String.fromCharCodeFastest: String.fromCharCode (2.6x faster)
2,745,441 ops/sec
1,057,308 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| TextDecoder | |
| String.fromCharCode |
| Test name | Executions per second |
|---|---|
| ✓ String.fromCharCode | 1,946,741 Ops/sec |
| TextDecoder | 1,593,655 Ops/sec |