Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
TextDecoder
2.6M/s
decodeURIComponent/apply
1.3M/s
decodeURIComponent/spread
594K/s

Fastest: TextDecoder (4.3x faster)

View exact numbers
  • TextDecoder: 2,557,573 ops/sec
  • decodeURIComponent/apply: 1,257,016 ops/sec
  • decodeURIComponent/spread: 593,697 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    decodeURIComponent/apply
    decodeURIComponent/spread
    TextDecoder

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Windows
View result in a separate tab
TextDecoder
3.7M/s
decodeURIComponent/apply
1.1M/s
decodeURIComponent/spread
498K/s
View exact numbers
Test name Executions per second
TextDecoder 3,719,512 Ops/sec
decodeURIComponent/apply 1,088,624 Ops/sec
decodeURIComponent/spread 497,998 Ops/sec