Try 25 MB of US mobile proxy data free for 30 days.Start free trial
November 25, 202612 min read

Proxy Speed Optimization: Measure, Diagnose, Tune

Isometric route and timing planes represent proxy speed

Proxy speed is not one number. For data collection, the fastest setup is the one that returns the most usable pages per minute and per dollar, not the one with the lowest ping. Slow requests usually come from a handful of causes you can separate with per-stage timings: connection setup, the proxy hop, the target's response and your own concurrency. Once you know which stage is slow, tuning is mostly about connection reuse, sensible timeouts, retries that do not pile up, and an IP type that the target does not throttle. Real carrier IPs, which is what we run at MaskLabs, are built for that last part: requests that look like ordinary mobile traffic are less likely to be slowed or blocked, so you spend less time on retries.

TL;DR

  • Measure time per usable response, not raw latency. A fast 403 or an empty page is a failure that looks like speed.
  • Break each request into stages (DNS, connect, TLS, first byte, download) so you can tell whether the proxy, the target or your own code is slow.
  • Reuse connections, set separate connect and read timeouts, and cap retries with one global deadline.
  • Match proxy type and city to the target. Throttling and blocks often cost more time than the extra network hop.
  • Tune concurrency last: raise it until success rate or p95 latency starts to fall, then back off.

Table of Contents

What "fast" means for a scraper or research pipeline

A speed test site tells you how many megabits you can push through a proxy. That matters for large downloads, but most scrapers, price monitors and ad verification jobs move small HTML or JSON responses. Their speed is governed by round trips and by how often a request has to be repeated.

So define speed as time to a usable result. That has three parts:

  1. Latency per request: how long one request takes from send to complete response.
  2. Success rate: the share of requests that return the content you wanted, not just an HTTP 200. Soft blocks, CAPTCHA pages and empty shells all return 200 with nothing useful. Our guide on why a 95% to 99% proxy success rate can mislead shows how a headline number hides these failures.
  3. Retry overhead: every failed request costs its own time plus the wait before the next attempt.

A worked example. Proxy A answers in 400 ms but only 70% of responses are usable. Proxy B answers in 700 ms with 98% usable. To collect 1,000 pages, A needs about 1,430 requests (1,000 ÷ 0.70), roughly 571 seconds of request time. B needs about 1,020 requests, roughly 714 seconds. Run sequentially, A is faster on paper. But A's failures also trigger backoff waits and, often, further blocking as retries hit the same target. Once you add even a one-second wait per failed request, A's 430 failures add about 430 seconds and it falls behind. The point is that the comparison only makes sense in units of usable pages, and you should compute it with your own numbers.

Measure speed the way your workload runs

A single test from your laptop to a generic page tells you little. Measure under the conditions of the real job.

Use your real targets and locations

Test against the sites you actually collect from, in the cities you actually need. A geo-targeted price comparison across regions behaves differently from a national crawl, because the exit city, the carrier and the target's regional servers all change the path. With MaskLabs you can pick from 46 US cities, so run the same sample in each one you plan to use and compare.

Take several samples, not one

Network timing is noisy. One run can land on a lucky or unlucky moment. Take at least three to five samples at different times and look at the median and the 95th percentile (p95, the value that 95% of requests beat). Our note on running 3 to 5 samples instead of one walks through the sampling routine for uptime, and the same logic applies to latency.

Record stages, not just totals

The free command-line tool curl can print the time at each stage of a request with its write-out option, including name lookup, connect, TLS handshake and first byte, as described in the curl manual. Most HTTP libraries in Python, Node.js, Java, C# and Rust expose similar hooks or let you wrap the client. Log these fields per request:

StageWhat it tells youIf it is slow
DNS lookupName resolution timeResolve through the proxy or cache lookups
TCP connectDistance and hop count to the proxyReuse connections, check the exit city
TLS handshakeCost of a new secure sessionKeep connections alive, avoid new clients per request
Time to first byteServer think time plus network pathUsually the target or its anti-bot layer
DownloadPayload size and bandwidthRequest less data, enable compression

Time to first byte (TTFB) is the delay before the first byte of the response arrives, and web.dev explains what it includes: the redirect, connection and server processing time before the content starts. That is why it is the stage to watch when you suspect the target.

If you need a ready-made way to compare rotation and latency, we reviewed 11 proxy checker tools for testing rotation and speed.

Find the bottleneck before you tune anything

Most wasted tuning effort comes from fixing the wrong layer. Use the stage timings to run a simple elimination.

Step 1: Compare through the proxy and direct. Request the same URL from the same machine both ways. If connect and TLS times jump but TTFB stays similar, the extra time is the proxy hop. If TTFB is high in both, the target is slow or is delaying you on purpose.

Step 2: Compare targets. Send the same request through the same proxy to a lightweight, stable page and to your real target. A fast response from the first and a slow one from the second points at the target, not the proxy.

Step 3: Compare cities. Run the same target from two or three exit cities. If one city is consistently slower, switch the targeting rather than raising timeouts.

Step 4: Check your own side. Look at CPU use, the size of your connection pool, DNS settings and how many requests you start at once. A client that opens a new connection and TLS session for every request, or a worker pool starved of threads, looks like a slow proxy.

Step 5: Look at wider network conditions. Congestion between you and the proxy entry point can add jitter that no setting fixes. For background on why a connection slows down for reasons outside any single provider, see this explanation of why the internet gets slower. Repeat measurements at different hours to see whether the pattern is time-of-day related.

The pattern to look for is where the variance sits. Steady slowness in one stage is a configuration problem. Spikes that come and go are usually congestion, target rate limiting or a bad IP.

Five checks trace proxy speed bottlenecks

Settings that improve speed without hurting accuracy

Reuse connections

Opening a connection costs a TCP handshake and, for HTTPS, a TLS handshake. Persistent connections let later requests skip that work, as the MDN guide to HTTP connection management describes. In practice: create one session or client object per worker and reuse it, instead of building a new one for every URL. With a rotating setup, remember that a new exit IP means a new connection to the target, so connection reuse pays off most when you use sticky sessions for multi-page flows (search, paginate, open a detail page) and rotation when each request is independent.

Pick sticky or rotating on purpose

MaskLabs supports both. A sticky session keeps the same IP across a sequence, which saves repeated handshakes and keeps cookies and session state consistent. Rotating sessions spread independent requests across IPs, which avoids hammering one address. Use sticky for login-bound or paginated flows, rotating for large lists of unrelated URLs.

Set timeouts by stage

A single global timeout either cuts off slow-but-valid responses or lets dead connections hang. Set a short connect timeout (a few seconds), a longer read timeout based on the p95 you measured for that target, and an overall deadline per job. Derive them from your samples, not from defaults. A timeout set well above p95 wastes time on dead requests; one set below p95 discards good responses and inflates retries.

Retry with jitter and a hard deadline

Retries are where speed is quietly lost. If many workers fail together and retry together, they collide again. Add random jitter to the backoff and give every task one global deadline so a bad page cannot consume the whole run. We compare the three common jitter options in our scraper retry logic guide. When a target sends HTTP 429 Too Many Requests, it may include a Retry-After header telling you how long to wait, per MDN's reference for 429. Honor it: waiting the stated time is faster than being throttled harder.

Fail over instead of retrying the same path

When a route is slow or failing, a second try through the same IP and city usually fails the same way. Switching to a different exit gets better results. Our post on four proxy failover strategies that stop wasted retries covers the patterns.

Request less data

Download time scales with payload. If you only need structured data, call the JSON endpoint the page itself uses rather than rendering the whole page. In browser automation, block images, fonts and media you do not need. This also lowers cost, because MaskLabs bills by the byte: fewer bytes per page means a lower bill as well as a faster run.

Tune concurrency last

Raise the number of parallel requests in steps. Watch three numbers at each step: pages per minute, p95 latency and usable-response rate. Throughput climbs, flattens, then falls once the target starts throttling or your client saturates. Stay just below the point where success rate or p95 starts to degrade. Our guide to proxy pool management for scraping teams covers how to spread load across sessions.

Proxy type, location and protocol

Type

Datacenter IPs are often faster on a raw speed test because they sit on high-bandwidth servers. Many sites, though, treat datacenter ranges with suspicion and respond with challenges, delays or blocks. Real mobile carrier IPs look like traffic from phones, so requests are less likely to be throttled or blocked, and the retry and CAPTCHA time you avoid is usually larger than any difference in raw latency. That is the reason our service uses real carrier IPs rather than datacenter proxies. For protected targets, the fastest option is the one that gets through the first time.

Type

Location

Proximity to the target's servers shortens the path, but the exit city also decides what content you see. For price comparison, ad verification and local search testing you need the city that matches the audience, so the choice is about accuracy first. Start with the city your data requires, measure, and only then consider a nearby city if latency is a problem and the content is identical.

Protocol

HTTP, HTTPS and SOCKS5 are all supported. Pick the one your tooling handles best; the difference in speed is usually small compared with connection reuse and target behavior. If you are unsure which to choose, our HTTP vs HTTPS proxy decision rules explain the trade-offs.

Balancing speed, success rate and cost

Put the three together in one metric: cost per usable result and time per usable result. A configuration that is 20% slower per request but needs far fewer retries wins on both. Track these by target class, because a simple static site and a heavily protected retailer will never share the same targets. The checks in our guide on catching silent scraper failures help you count only real results.

Our perspective

When teams ask us how to make a proxy faster, they usually mean one of two things: lower latency, or fewer wasted requests. The second is almost always the bigger win.

We built MaskLabs around real US mobile carrier IPs with city-level targeting, sticky and rotating sessions, and byte-based billing, because those are the levers that decide time to a usable result. Sticky sessions let you pin one IP for a multi-step flow. Rotation spreads independent requests. City targeting gets you the content your audience actually sees.

Our service is designed for roughly 99.9% uptime and a success rate above 99%, and the usage dashboard shows what each session costs in data, so you can tune against numbers rather than guesses. Measure per stage, change one thing at a time, and keep the setting only if usable pages per minute go up.

Jon

Try it on your own targets

If you want to run these measurements on real carrier IPs, MaskLabs has a free trial with a limited amount of data, which is enough to time your own targets in the cities you need. Paid plans are tiered by monthly data pool: Starter is $30 per month, Basic is $100 per month, Advanced is $500 per month and Scale is $1,000 per month. Prepaid data add-ons are billed per GB, and credentials are self-serve, so you can set up without a sales call. See the plans and pricing or start from the US mobile proxy overview.

Masklabs

For related engineering notes, browse our mobile proxy guides or the walkthrough on reliable automated browsing and scraping.

FAQ

Do proxies make my connection faster?

No. A proxy adds a hop, so on its own it cannot speed up a connection. What it can do for data collection is raise the share of requests that succeed, which cuts retries and shortens the time to a complete dataset.

What is a good latency for a scraping proxy?

There is no universal figure, because it depends on the target, the city and the page weight. Measure median and p95 for your own targets over several samples, then set timeouts from that p95. Compare configurations by time per usable response.

How do I know if the proxy or the target is slow?

Log connect, TLS and first-byte times separately and compare a request through the proxy with a direct one. If connect and TLS are slow, the hop is the cause. If first byte is slow in both, the target is the bottleneck.

Should I use sticky or rotating sessions for speed?

Use sticky sessions for multi-page flows, since a held IP lets you reuse connections and keep session state. Use rotating sessions for large batches of independent URLs so no single IP takes all the traffic.

Sources

Recommended