decodeURIComponent/apply vs decodeURIComponent/spread vs TextDecoderFastest: TextDecoder (4.3x faster)
2,557,573 ops/sec
1,257,016 ops/sec
593,697 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| decodeURIComponent/apply | |
| decodeURIComponent/spread | |
| TextDecoder |
| Test name | Executions per second |
|---|---|
| ✓ TextDecoder | 3,719,512 Ops/sec |
| decodeURIComponent/apply | 1,088,624 Ops/sec |
| decodeURIComponent/spread | 497,998 Ops/sec |