Skip to content

Instantly share code, notes, and snippets.

@quantumproxies
Created July 28, 2026 09:47
Show Gist options
  • Select an option

  • Save quantumproxies/444bc757274586afbb3d39cf13f7f5be to your computer and use it in GitHub Desktop.

Select an option

Save quantumproxies/444bc757274586afbb3d39cf13f7f5be to your computer and use it in GitHub Desktop.
Proxy speed test: latency & throughput through a proxy vs direct, in pure curl — https://quantumproxies.io/residential-proxies
#!/usr/bin/env bash
# Proxy speed test: latency + download throughput through a proxy vs direct.
# Works with any HTTP proxy; example endpoint is QuantumProxies residential
# (rotating :9000) -> https://quantumproxies.io/residential-proxies
#
# export QP_USER=your_username QP_PASS=your_password
# ./proxy-speed-test.sh https://speed.cloudflare.com/__down?bytes=10000000
URL="${1:-https://speed.cloudflare.com/__down?bytes=10000000}"
PROXY="http://${QP_USER}:${QP_PASS}@residentialboson.quantumproxies.io:9000"
fmt=" connect: %{time_connect}s ttfb: %{time_starttransfer}s total: %{time_total}s speed: %{speed_download} B/s\n"
echo "== direct =="
curl -s -o /dev/null -w "$fmt" "$URL"
echo "== through proxy =="
curl -s -o /dev/null -x "$PROXY" -w "$fmt" "$URL"
# Tip: run 3-5 times and average — residential exits vary per rotation.
# Sticky sessions (port 10000, flag -session-x1-lifetime-10) give repeatable
# numbers because you measure the same exit every run.
# Credentials: https://app.quantumproxies.io/register
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment