The time of a request through a proxy is made of two legs: from you to the proxy exit, and from the exit to the target server. The exit country sets the length of the second leg. A new HTTPS connection crosses that leg several times before the first byte. The one trap is picking the fastest country when content changes by country: the page arrives fast but shows the wrong country's price. This post covers country choice for three kinds of target, the curl measurement method and our measurement to European regions.
Two-leg timing
In a request through a proxy, every round trip crosses both legs. The packet goes from you to the exit, from the exit to the target, and back the same way. Some steps happen only on the second leg. In an HTTPS request the client sends the proxy a CONNECT request. The proxy opens the TCP connection to the target itself and only then returns "200". That connection setup takes place only between the exit and the target.
On a new HTTPS connection, this sequence runs up to the first byte:
- Connection to the proxy. The TCP handshake between you and the proxy.
- Tunnel. The
CONNECTrequest and the TCP connection the exit opens to the target. - TLS. The handshake inside the tunnel, crossing both legs.
- Request. The request going out, the server's work and the first byte coming back.
The result is simple: every extra millisecond on the second leg is paid several times per new connection. The definition of latency and how it differs from ping are in our latency post. Here we only look at country choice.
Content not tied to a country
If the target's content does not change with the visitor's country, the country is chosen for latency alone. An API, a site served from a single server or your own infrastructure falls into this group. Placing the exit next to the target keeps the path from detouring past it. The steps the proxy performs only on the second leg get shorter too.
You can find out where the target is in three ways:
- Documentation. Cloud APIs carry the region in the address:
eu-central-1means Frankfurt,eu-west-3means Paris. - Server address. The location record of the target's IP address roughly tells you the country. For an address behind a CDN, this record only shows the edge server.
- Measurement. Measure the same target from several countries and pick the one with the lowest median.
In our measurement, with the exit in Germany, the TCP connection took between 60 and 100 ms depending on the target's country. The target in Frankfurt was the shortest, the one in Spain the longest. That 40 ms gap roughly tripled at the first byte. If the target is in Spain and content does not depend on the country, keeping the exit in Germany costs you this gap on every new connection.
Target behind a CDN
For a target behind a CDN, the connection usually goes to an edge server close to the exit. That is why the gap between countries shrinks. Even if the site's origin server is in Ireland, an exit in Germany often connects to an edge in Frankfurt. In our measurement a CDN's diagnostic address answered from its Frankfurt edge. The TCP median came out almost the same as the cloud region in the same city: 61 ms against 60 ms.
Two conditions break this gain. The first is DNS. The edge is chosen by the location of whoever resolves the name. If the name is resolved on your device, you may get an edge near you even with the exit in Germany. We covered this in detail in DNS resolution and proxy location. The second is caching. For pages that are not cached, the edge forwards the request to the origin server. The connection is set up fast, but the first byte still comes from far away.
In short, on a CDN connection setup is barely affected by the country. If there is a country gap, it usually shows up in time_starttransfer.
Content tied to a country
If price, stock, catalog, language or search results change with the visitor's country, the country choice comes before latency. To see a French store's price, the exit has to be in France. An exit in Germany saves a few milliseconds but brings back a different price list. A speed gain that corrupts the data is not a gain.
In this case you cut latency with settings other than the country:
- Reuse the connection. A connection kept open with keep-alive does not repeat the tunnel and TLS steps. A sticky session keeps the same exit for 1-60 minutes.
- Let the proxy resolve the name. With an HTTP proxy or
socks5h://, the name is resolved on the exit side. The edge is then also chosen by the exit country. - Verify the country. Check that the page shows the expected currency and language.
We explained how country and city targeting work in our country and city targeting post. Proxynet Residential Proxy lets you choose the exit country and supports HTTP and SOCKS5.
Measuring with curl
To compare countries, send several requests on new connections to the same target from each country and take the median. curl's -w option gives three values. time_connect marks when the connection to the proxy finished, time_appconnect when the tunnel and TLS finished, and time_starttransfer when the first byte arrived. Values are in seconds and counted from the start of the request.
for i in $(seq 1 15); do
curl -x http://user:pass@pr.proxynet.io:8000 -s -o /dev/null \
-w "%{time_connect} %{time_appconnect} %{time_starttransfer}\n" \
https://dynamodb.eu-central-1.amazonaws.com/ping
done > frankfurt.txt
sort -n -k3 frankfurt.txt | sed -n 8pThe loop starts 15 separate curl processes, and each opens a new connection. The last line sorts the results by the first-byte column and prints the middle, 8th line, which is the median. Through a proxy, time_connect only shows the leg between you and the proxy. The country gap appears in time_appconnect and time_starttransfer.
Four rules make the measurement reliable:
- Do not trust a single run. Repeat at least 15 times and take the median. The average is very sensitive to one slow request.
- Alternate the countries. If you measure all of Germany first and then all of Spain, the time between them leaks into the result.
- Use the same target. Change only the exit country, not the target.
- Limit the result to your own line. Someone measuring from another city or carrier will see different numbers.
On Mac and Linux the command runs as is. On Windows, use Git Bash or WSL.
Measurement to European regions
In our test we opened new connections from the same exit to cloud regions in Europe and to a CDN address. The exit was in Germany and did not change. That way only the effect of the second leg showed. The test server forwarded packets at the network level, and no CONNECT tunnel was set up. So the TCP column in the table shows the connection to the target, that is, the sum of both legs. In the same measurement through an HTTP proxy, this time shows up in time_appconnect, not in time_connect. Values are the median of 21 runs, in milliseconds, and apply only to this connection.
| Target | TCP | TLS done | First byte |
|---|---|---|---|
| Frankfurt (eu-central-1) | 60 | 130 | 190 |
| Zurich (eu-central-2) | 65 | 142 | 208 |
| Paris (eu-west-3) | 67 | 144 | 212 |
| London (eu-west-2) | 70 | 153 | 224 |
| Ireland (eu-west-1) | 80 | 172 | 252 |
| Stockholm (eu-north-1) | 82 | 174 | 257 |
| Spain (eu-south-2) | 100 | 209 | 308 |
| CDN, Frankfurt edge | 61 | 134 | 202 |
Here is how to read the table. The first leg, from the test machine in Türkiye to the exit in Germany, took 54 ms. Subtracting this from the TCP column roughly leaves the second leg: 6 ms for Frankfurt, 46 ms for Spain. In the first-byte column the gap between the two cities grew to 118 ms. The new connection paid the round-trip gap roughly three times.
These numbers describe a single exit, not a proxy network. For your own decision, measure from your own line against your own target.
Diagnosis
What a result means depends on which column changes:
- If
time_connectthrough the proxy changes by country, the problem is on the first leg. The exit country should not affect this value, so check the path to the proxy first. - If the first-byte medians of two countries differ by less than the run-to-run variation, the country does not matter for latency. Decide by content or price.
- If on a CDN target TCP is the same but the first byte differs, the page is not cached and is going to the origin server.
- If the median is good but the slowest values are several times longer, the problem is not the country but jitter on the exit line. Increase the number of runs.
- If the edge is not in the expected country, the name is most likely being resolved on your device.
How we tested
We ran the measurement on December 3, 2026 on Windows 11 with curl 8.22.0 (Schannel). The test machine is in Türkiye. Requests went out through a test server in Germany. That server stood in for the proxy exit in the measurement. The measurement did not go through Proxynet exit nodes.
The targets were the /ping addresses of AWS's regional DynamoDB endpoints. For the CDN row we used Cloudflare's /cdn-cgi/trace address. It reported the answering edge as colo=FRA. Each request was a new curl process. Targets were measured in alternating order, and each was repeated 21 times. To keep DNS time out, the addresses were resolved in advance and pinned with --resolve. For the first leg we sent 21 pings to the test server, with a median of 54 ms.
We ran the curl loop from this post through a local test proxy that required user:pass and logged every CONNECT request. 15 tunnels opened and the median line printed correctly. With a wrong password, curl got 407.
The bottom line
If content does not depend on the country, put the exit next to the target, and for a target behind a CDN let the proxy resolve the name. Choose the country by measuring: 15 runs, alternating order, median. Above all, if content changes by country, do not switch countries for speed. If you will work from the same country and the same address for a long time, ISP Proxy gives you a fixed exit.
Sources
- curl manual,
-wand timing variables: curl.se - Amazon DynamoDB endpoints and region names: docs.aws.amazon.com
- RFC 9110, HTTP Semantics, section 9.3.6 CONNECT: rfc-editor.org
Frequently asked questions
Does the proxy country affect speed?
Yes. The exit country sets the length of the leg between the exit and the target server. A new HTTPS connection crosses this leg several times before the first byte. In our test, requests from the same exit to Frankfurt and to Spain differed by 40 ms in TCP and 118 ms at the first byte. If the target is behind a CDN, the gap shrinks.
Which proxy country is fastest for Europe?
There is no single answer. The fastest country is the one where the target server sits, or the one closest to it. For an API in Frankfurt, Germany comes out ahead; for a site in Paris, France does. If the target is behind a CDN, many countries give similar results. Decide with a 15-run measurement against your own target.
Does the country matter if the target site uses a CDN?
It matters less for latency. The CDN routes the connection to an edge server close to the exit, so the TCP gap between countries shrinks. Pages that are not cached still go to the origin server, and the first byte can take longer. If content changes by country, the country choice matters regardless of latency.
How many runs should I measure?
At least 15. Each run should open a new connection, and you should take the median of the results. The average is very sensitive to one slow request. Measure countries in alternating order rather than one after another, so that changes within the hour are not blamed on a single country. Repeating on different days and at different times shows the result is not a fluke.
Should I pick a proxy country close to Türkiye?
No, pick by target. An exit close to Türkiye shortens the first leg, but if the target is far away the second leg gets longer. If content does not depend on the country, put the exit next to the target server. If it does, pick that country and reduce latency by reusing connections. If the target is in Türkiye, a nearby exit is already the right choice.
Why is time_connect so low through a proxy?
Because when you use a proxy, time_connect only measures the connection between you and the proxy. The connection to the target opens while the tunnel is set up and shows up in time_appconnect. So when comparing countries, look at time_appconnect and time_starttransfer. If time_connect changes by country, the problem is on the first leg and has nothing to do with the exit country.




