Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15
Safari 18
Mac OS X 10.15.7
Desktop
one month ago
Test name Executions per second
URLSearchParams 864435.9 Ops/sec
Custom (safe) 1534116.2 Ops/sec
Custom 2 (unsafe) 5809313.5 Ops/sec
Custom (fast) 3303947.2 Ops/sec
Custom (both) 1090082.2 Ops/sec
Script Preparation code:
Tests:
  • URLSearchParams

  • Custom (safe)

  • Custom 2 (unsafe)

  • Custom (fast)

  • Custom (both)