What the latency number actually measures

An 80 ms reading means that, under the network conditions at the time, the core sent a probe through that node to a specified URL and measured 80 ms using its current timing method. More precisely, this is the response time for a short HTTP probe. It is not an ICMP ping from your computer to the node, nor a stopwatch measuring only the TCP handshake.

In a client using the mihomo core, clicking a node’s latency test usually tells the core to select that node and request the test URL. The core uses the node being tested directly. When you open a website in a browser, rules may first match its domain or destination address, and a proxy group then determines the route. Even if the panel shows a low number, your browser may not be using that node at all.

Why the same node can show different results

  • Connection state varies. A new connection may involve DNS resolution, establishing a transport connection, and a proxy protocol handshake. HTTPS destinations may also require a TLS handshake. Caching and connection reuse can change the overhead of a request.
  • The destination responds differently. A request travels not only between your device and the node, but also from the node to the test site. The site’s response and the route from the proxy exit to that site can both affect the result.
  • Timing methods vary. mihomo supports unified-delay, which uses repeated probes to reduce the effect of different proxy protocol handshake overheads when comparing latency. When comparing clients, check that they use the same core and this option, then confirm they test the same URL.

How the test URL and timeout affect results

Compare candidate nodes using the same short-response URL

A common test URL is https://www.gstatic.com/generate_204. A normal HTTP 204 response has no body, making it useful for quickly checking whether a route can reach a destination and receive a response—not for measuring download speed. Keep the protocol, domain, and path the same when comparing nodes. Switching to another domain may change both the service and the route from the proxy exit, so the results aren’t directly comparable.

If all nodes time out at roughly the same time, test a few candidates against another short-response URL that is normally reachable. This can help determine whether the original test destination is the problem. If the tester lets you specify an expected status code, require 204 for a 204 endpoint. A fast 302 redirect to a login page or a 403 forbidden response still isn’t the expected result.

Keep timeouts and test intervals separate

A timeout is how long a single probe waits; an interval is how long to wait before the next scheduled test. For a manual latency test, if the client exposes a timeout setting, try 5 seconds. If the field uses milliseconds, enter 5000. For example, a request that takes 1.4 seconds may time out with a 1,000 ms limit but return a result with a 5,000 ms limit. A longer timeout won’t make the node faster; it just gives late responses a chance to be recorded.

The panel’s “Test All” function, automatic probes for a url-test proxy group, and health checks for proxy-providers may each use different test URLs and run at different times. In a typical mihomo configuration, interval: 300 for url-test means a 300-second probe interval, not a 300 ms timeout. Changing the manual test URL doesn’t mean automatic node selection uses the new URL too.

If you see “Timeout,” a blank value, or another timeout message, first check whether the client combines different errors into the same display. DNS resolution failures, connection timeouts, and certificate errors in the logs point to different stages; they shouldn’t all be treated as a node being offline.

Why low latency can still mean slow downloads or buffering

A short probe measures how quickly a response arrives; a download depends on how much data arrives each second. A clear route from the node to the test site doesn’t guarantee a clear route to a file server. Sustained transfers are also affected by local Wi-Fi, congestion at the proxy exit, and server-side speed limits. Even occasional packet loss can trigger repeated retransmissions during a download. One successful short request doesn’t rule that out.

Illustrative comparison using the same test URL and a 20 MiB file (not measured from real nodes)
Route Short-probe latency Full download time Average speed based on total time
Node A 65 ms 25 sec 0.8 MiB/s
Node B 145 ms 5 sec 4 MiB/s

Node A ranks higher on the short probe; Node B is better for downloading this file. Browsing introduces a third scenario: the main page may load quickly, while images, scripts, and fonts come from different domains and may match different routing rules. If a page keeps spinning, use your browser’s Network panel to find the slowest request, then check the client’s connection log to see whether that domain went direct or through the expected proxy group.

Troubleshooting: From Node Probes to Real-World Apps

  1. Keep test conditions consistent. On the same device and network, pause large downloads. Choose two or three nodes and test each in turn with the same URL five times. Record successful response times and failures. Don’t use one concurrent, all-nodes speed test to judge whether an individual route is stable.
  2. Track both the median and failures. For example, five attempts might return 70, 75, 90, and 360 ms, with one timeout. The median of the successful results is 82.5 ms, but also record “1 timeout out of 5.” This failure count applies to short probes; it can’t be converted into a packet loss rate.
  3. Confirm that your app’s traffic actually uses the node being tested. Check the client’s connection log for the matched rule, proxy group, and actual exit route for the destination domain. When comparing two nodes in a browser, start a new connection after each switch and account for browser caching. If a request matches DIRECT, switching proxy nodes won’t improve that direct connection.
  4. Test for your actual use case. If you mainly download files, alternate between two nodes and download the same file you’re authorized to access, confirming that data transfers each time. If you mainly stream video, use the same quality at similar times and see whether it repeatedly buffers. If performance is steady during the day but slows at night, keeping comparable records for both periods is more useful than looking only at the lowest daytime latency.

Compare results with curl through the local proxy

If your client has a local HTTP or mixed-port proxy enabled, you can run a comparison request from Terminal on macOS or Linux using the command below. The example uses 127.0.0.1:7890; this isn’t a fixed port—use the HTTP or mixed port shown in your client, not the controller port. In Windows Terminal, use curl.exe and put the command on one line.

curl --proxy http://127.0.0.1:7890 --max-time 10 \
  --silent --show-error --output /dev/null \
  --write-out 'HTTP %{http_code}; first byte %{time_starttransfer}s; total %{time_total}s\n' \
  https://www.gstatic.com/generate_204

On Windows, also replace /dev/null with NUL. first byte is the cumulative time from the start of the request until the first byte arrives; total is the total time. Both are measured in seconds, so 0.180s means 180 ms. The command sends the request through the local proxy, where current rules may route it directly or through a proxy. Check the connection log before interpreting the result. This tests the route used by an app explicitly configured to use the local proxy. It doesn’t reproduce the panel’s test of a specific node or, by itself, verify that TUN is capturing traffic from other apps.

Automatic node selection: prioritize stability over the lowest latency

url-test selects a route based on short probes to a specified URL, making it useful for choosing a responsive exit from a set of similar nodes. It can’t tell how fast a route will download a large file or whether a real video service will buffer. If two candidates often differ by just a few milliseconds, check whether your core supports the tolerance setting. This value is in milliseconds and helps prevent frequent switching due to small latency fluctuations; it is not a request timeout.

A practical selection order is to rule out nodes that repeatedly fail against the same URL, confirm that traffic for your destination domain uses the right exit, then compare first-byte time, download speed, or playback stability for your actual use case. Panel readings are useful for an initial shortlist. Keep a route only if it performs consistently with the services you use.