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 1578555.2 Ops/sec
Custom (safe) 1575895.6 Ops/sec
Custom 2 (unsafe) 5974001.5 Ops/sec
Custom (fast) 3320333.8 Ops/sec
Custom (both) 414257.2 Ops/sec
Script Preparation code:
Tests:
  • URLSearchParams

  • Custom (safe)

  • Custom 2 (unsafe)

  • Custom (fast)

  • Custom (both)