测试 Proxy(代理)性能通常从延迟、带宽、稳定性、并发能力、匿名性等维度进行评估。下面给你一套实用、可落地的测试方法和工具清单。
ping、curl、httpingspeedtest、iperf3、wgetmtr、tcpdumpab、wrk、locustcurl -I、whatismyipcurl -x http://proxy_ip:port https://httpbin.org/ip
检查:
httping -x proxy_ip:port -g https://www.google.com
或:
curl -o /dev/null -s -w "%{time_connect} %{time_starttransfer} %{time_total}\n" \
-x http://proxy_ip:port https://www.example.com
wget -O /dev/null http://speedtest.tele2.net/100MB.zip \
-e use_proxy=yes -e http_proxy=http://proxy_ip:port
或用 iperf3(适合内网代理)
wrk -t10 -c100 -d30s \
-x http://proxy_ip:port \
https://httpbin.org/get
ab -n 10000 -c 100 -X proxy_ip:port https://httpbin.org/get
while true; do
curl -x http://proxy_ip:port https://httpbin.org/ip
sleep 1
done
记录失败率、超时率
| 代理类型 | 测试重点 |
|---|---|
| HTTP | 头部泄露、缓存 |
| HTTPS | TLS 握手延迟 |
| SOCKS5 | UDP / TCP 支持 |
| 透明代理 | 是否暴露 X-Forwarded-For |
| 高匿代理 | 是否完全隐藏特征 |
如果你能说明:
我可以直接给你定制化测试脚本。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。