Created
July 28, 2026 09:47
-
-
Save quantumproxies/93e30bddf6c13e7c0d2e076a0ef53486 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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