Script Preparation code:
Tests:

Historical Performance Data aggregated from 37 community runs

Desktop Results:
Chrome 32 runs
URLSearchParams
1.2M/s
URL
805K/s

Fastest: URLSearchParams (1.5x faster)

View exact numbers
  • URLSearchParams: 1,204,979 ops/sec
  • URL: 805,154 ops/sec
Firefox 5 runs
URLSearchParams
1.2M/s
URL
416K/s

Fastest: URLSearchParams (2.8x faster)

View exact numbers
  • URLSearchParams: 1,156,348 ops/sec
  • URL: 416,433 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
    URL
    URLSearchParams

    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; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139 on Windows
View result in a separate tab
URLSearchParams
1.4M/s
URL
416K/s
View exact numbers
Test name Executions per second
URLSearchParams 1,401,467 Ops/sec
URL 416,433 Ops/sec