WORKFLOW SNAPSHOT
- Compare a representative small request and a larger transfer under stable local conditions.
- Suggested starting behavior: Static assignment
- Validate the real application and destination
A practical Connection performance testing workflow
Compare a representative small request and a larger transfer under stable local conditions.
- Record the direct baseline before introducing the proxy.
- Separate DNS, connection setup, first byte, and full transfer where possible.
- Repeat tests close in time using the same client and destination.
Why keep the assignment steady in a proxy performance comparison?
Use one assignment during the comparison so rotation does not mix several routes into one sample set. A proxy adds a network component and does not increase the capacity of your ISP line. The question is whether this particular path helps this particular task.
Which timing measures matter before running a larger speed comparison?
Extra routing can add latency or introduce a bottleneck. A fast speed-test endpoint does not prove better performance for an unrelated application.
Compare distributions and failures, not only the fastest result. Check local Wi-Fi and competing traffic first.
Verify the Connection performance testing connection boundary
Separate DNS, connection setup, first byte and complete transfer where the client exposes them. Hold destination, response size, concurrency and test window steady. Include failures rather than reporting only the fastest successful sample.
Measure a fixed transfer through one proxy route
Download one fixed test object and record elapsed transfer time, body size and a SHA-256 hash for comparison with nearby direct and routed observations.
- 01Generate your endpoint
Choose HTTP / HTTPS and Sticky session for the complete workflow in Configure proxies.
- 02Set your proxy URL
Set
PS_PROXY_URLtohttp://USERNAME:PASSWORD@HOST:PORTusing your generated endpoint. For IP authentication, whitelist your machine and usehttp://HOST:PORT. Percent-encode special characters in credentials; these are proxy credentials, separate from your account password or API key. - 03Choose the destination
Set
Example URL · replace placeholders with your targetPS_TARGET_URLbefore running the code. Use a fixed-size HTTPS test object you own or are authorized to download, with a known stable body and a modest size appropriate to your test budget.https://example.com/diagnostics/transfer-fixture.html
Python 3.10+ · python -m pip install requests · python ps_speeding_up_the_internet.py# Download one fixed test object and record elapsed transfer time, body size and a SHA-256 hash for comparison with nearby direct and routed observations.
# Use a fixed-size HTTPS test object you own or are authorized to download, with a known stable body and a modest size appropriate to your test budget.
import hashlib
import json
import os
import time
from pathlib import Path
from urllib.parse import urlsplit
import requests
class InspectSession(requests.Session):
# Leave redirect bodies streamed instead of preparing the next request.
def resolve_redirects(self, *args, **kwargs):
return iter(())
proxy = os.environ["PS_PROXY_URL"] # HTTP endpoint from ProxySight
target = os.environ["PS_TARGET_URL"] # https://example.com/diagnostics/transfer-fixture.html
if urlsplit(proxy).scheme != "http":
raise ValueError("Use your generated HTTP proxy endpoint for this example.")
if urlsplit(target).scheme not in ("http", "https"):
raise ValueError("PS_TARGET_URL must be an HTTP or HTTPS URL.")
with InspectSession() as client:
client.trust_env = False # No ambient proxy, NO_PROXY or netrc overrides
started = time.monotonic()
with client.get(
target,
proxies={"http": proxy, "https": proxy},
headers={"Accept-Language": "en-US,en;q=0.9"},
timeout=(10, 20), allow_redirects=False, stream=True,
) as response:
body = bytearray()
for chunk in response.iter_content(16384):
body.extend(chunk)
if len(body) > 1048576:
raise RuntimeError("Response exceeds this example's 1 MiB limit.")
Path("performance-transfer-sample.html").write_bytes(body)
print(json.dumps({
"workflow": "speeding-up-the-internet", "status": response.status_code,
"elapsed_ms": round((time.monotonic() - started) * 1000),
"bytes": len(body), "sha256": hashlib.sha256(body).hexdigest(),
"headers": {name: response.headers.get(name) for name in ['Content-Type', 'Content-Length', 'Accept-Ranges']},
}, indent=2))
expected = os.getenv("PS_EXPECT_TEXT", "")
if expected:
text = body.decode(response.encoding or "utf-8", errors="replace")
print("Expected text:", "found" if expected in text else "absent")
# A 200 status alone does not prove the intended page was returned.
# Inspect redirects, login prompts, 403 and 429 before another request.
Compare repeated measurements only when byte count and hash identify the same object and cache conditions are understood. One completed HTTP transfer measures this client and destination; it does not establish an ISP speed increase or the performance of games, video or other applications.
Response bodies are limited to 1 MiB for a small diagnostic. TLS verification stays enabled; redirects are left for you to inspect. Connection guide
Example: compare the same request with the right metric
Choose a representative request and a repeatable local setup. Separate connection setup, first response, and complete transfer where your tool exposes them. Repeat nearby tests rather than selecting the fastest single result.
Keep destination, request size, and client constant. A speed-test host is a different workload from a long transfer or a latency-sensitive application.
{
"destination": "YOUR_TEST_TARGET",
"client": "RECORD_CLIENT",
"metric": "RECORD_METRIC",
"direct_samples": "RECORD_SAMPLES",
"proxy_samples": "RECORD_SAMPLES"
}Connection performance testing verification checklist
For this Connection performance testing workflow, record baseline, metric and comparison alongside the actual result. Use the evidence below to decide whether another observation is comparable before increasing the workload.
| Checkpoint | Hold constant or record | Expected evidence |
|---|---|---|
| Baseline | Direct request under stable conditions | A meaningful starting point |
| Metric | Setup, response, or transfer measure | The unit matches the question |
| Comparison | Same request and nearby window | One deliberate routing difference |
Troubleshoot Connection performance testing results and connection errors
| Symptom | Check next | What the result tells you |
|---|---|---|
| One request is faster | Repeat the comparison | A single sample can be misleading |
| Transfer fast, app delayed | Measure application path | Different performance dimensions |
| Both routes slow | Check local network and competing traffic | The proxy may not be the bottleneck |
Compare repeated direct and routed samples of the same request
Collect several nearby direct and routed observations under stable local conditions. Record the distribution and error count with the client and network context. If both variants slow down together, investigate Wi-Fi, local contention and the destination before blaming the proxy.
A LITTLE CLARITY
Common questions.
Can a proxy increase my ISP line speed?
No. A proxy does not change the capacity of the underlying internet connection.
Which result should be reported instead of the fastest sample?
Use repeated observations, failures, and a description of the measured distribution and conditions.
Which timing measures matter before running a larger speed comparison?
Separate DNS, connection setup, first byte and complete transfer where the client exposes them. Hold destination, response size, concurrency and test window steady. Include failures rather than reporting only the fastest successful sample.