For-loop vs String.fromCharCode.applyFastest: String.fromCharCode.apply (53.3x faster)
3,674,182 ops/sec
68,949 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| For-loop | |
| String.fromCharCode.apply |
| Test name | Executions per second |
|---|---|
| ✓ String.fromCharCode.apply | 3,581,296 Ops/sec |
| For-loop | 1,583,063 Ops/sec |