Clash node latency measures one request, not download bandwidth

url-test sends a request to the same test URL through each candidate node, then compares how long each request takes. A displayed result of 85 ms means that probe was fast; it doesn’t tell you how quickly you can download files, and it isn’t the same as an ICMP ping from your device to the proxy server. The test site is the request’s destination, so the route from the node to that site also affects the result.

  1. Connect to a candidate node. A cold connection may involve resolving the proxy server’s address, establishing a transport connection, and completing the proxy protocol handshake. Handshake steps vary by protocol, and reusing an existing connection can also affect the time.
  2. Request the test URL through the node. With HTTPS, this also involves establishing a secure connection to the test site. Where the destination domain is resolved depends on the proxy protocol and DNS configuration in use, so you can’t determine it from the device’s DNS settings alone.
  3. Record the response time or failure. Common test URLs return 204 No Content, with no response body to transfer. Timing details may vary between core versions and how the test is triggered, so millisecond results from different clients shouldn’t be compared at face value.

How to interpret handshake latency, throughput, and packet loss

MetricHow to measureHow to use the result
Request timeSend repeated small requests to the same URL and record the median and number of timeouts.Use this to assess whether the initial page connection is reliable, not to estimate large-file download speeds.
Download throughputDownload a fixed-size file from the same source and divide the amount transferred by the time taken.Compare sustained transfer speeds. Ignoring protocol overhead, 5 MB/s is equivalent to 40 Mbps.
Packet loss and variabilityStart by recording failed probes. When troubleshooting stalled TCP downloads, check whether retransmissions on connections visible to your device increase during the stalls.A probe may time out because of DNS resolution, the handshake, or a slow server response. The timeout rate is not the network-layer packet loss rate.

For example, node A has a median probe time of 82 ms and takes 50 seconds to download 100 MB, averaging 2 MB/s. Node B measures 145 ms and downloads the same file in 12.5 seconds, averaging 8 MB/s. These are illustrative calculations, not real node measurements. A may respond faster to short requests, while B is clearly faster for this large-file transfer. Rate limits, peak-hour congestion, and download-server throttling can all reduce throughput while leaving small probe requests fast.

Average latency can also hide occasional stalls. If a node responds in around 90 ms on eight out of ten probes, but the other two exceed the 5000 ms timeout, report it as “median of successful probes: about 90 ms; timeouts: 2/10.” Don’t count timeouts as zero or report latency only for successful probes. For video calls and similar workloads, test the actual traffic path; an HTTPS probe can’t replace checks for UDP connectivity and jitter.

mihomo url-test configuration: URL, interval, and timeout

First, check the client’s core information to confirm it’s running mihomo (formerly Clash Meta), then edit the configuration it actually loads. The example below shows a group under the top-level proxy-groups key. If that key already exists, add the group to its existing list instead of defining a second proxy-groups key. “Hong Kong A” and “Japan B” are example node names; in your configuration, they must exactly match the name values under proxies.

proxy-groups:
  - name: Latency Select
    type: url-test
    proxies:
      - Hong Kong A
      - Japan B
    url: https://www.gstatic.com/generate_204
    interval: 300
    timeout: 5000
    tolerance: 50
    lazy: true
  • url: All candidate nodes access the same URL. This example uses a lightweight HTTPS endpoint that usually returns 204. If the endpoint is unreachable from a set of egress routes, switch to a stable endpoint that all candidates can reach, then compare them again from scratch. Login redirect pages and large files aren’t suitable for routine probes.
  • interval: 300: Run checks every 300 seconds. This value is in seconds; it isn’t the maximum duration of a single request. lazy: true lets unused groups skip scheduled probes. To check whether an idle group is being updated, temporarily set it to false and observe the results.
  • timeout: 5000: Set the probe timeout to 5000 milliseconds. A threshold that’s too short can mark a usable but slow route as failed. If increasing it only turns “timeout” into “takes several seconds,” keep investigating DNS resolution or the route rather than assuming the node has recovered.
  • tolerance: 50: Use a 50-millisecond tolerance when automatically selecting a node to reduce frequent switching between nodes with similar latency. This isn’t a 50-millisecond latency limit or probe timeout.

After saving, reload the configuration and confirm that “Latency Select” appears in the proxy panel. Then check the connection log to verify that the traffic being tested uses this group. In rule mode, defining a policy group alone won’t change the traffic route: the matching rule must point to this group, or to a parent policy group that currently selects it. Subscription updates may overwrite manually edited fields. If the client supports persistent overrides, use that feature and verify the active configuration after updates.

Low node latency but slow downloads: retest under controlled conditions

  1. First, confirm the actual egress node. Select each node in a manual selection group and compare the destination domain, matched rule, and final node in the connection log. When testing a browser or download tool, also confirm that the application is actually using the proxy: some applications ignore the system proxy. Even with TUN enabled, check whether the connection is being routed through it instead of relying on the toggle alone.
  2. Next, test short requests. On the same device and network, send ten requests through each node to the same lightweight URL. Record the median and slowest successful response times, along with the number of timeouts. Don’t rank node A tested over Wi-Fi against node B tested over a cellular connection.
  3. Finally, test the actual workload. Use a fixed-size file from a source you normally use, or a 100 MB test file on a server you control. Run three sequential tests per node. Make sure the file isn’t served from a local cache, keep the number of concurrent downloads the same, and note the average speed and any stalls. To compare peak-hour performance, alternate between A and B at similar times so differences in timing aren’t mistaken for differences between nodes.

Troubleshooting all-node timeouts versus a single-node timeout

If every node times out, first try another reachable lightweight HTTPS test URL and verify that a candidate node can access it. If actual traffic works but the original URL fails, check DNS resolution for the test domain, certificate validation, and reachability of the test site first. If only one node times out, compare it with the others while keeping the URL and timeout unchanged. Then use the logs to identify whether the failure occurred during node address resolution, connection setup, or the request to the destination.

If a node shows low latency but real traffic stalls, first check whether that traffic is using a different node, then retest against the actual destination. If downloads from several sources are slow through the same node, compare your local network and proxy egress performance during peak hours. If only one source is slow, check for server-side throttling and compare the route from the egress node to that site. For everyday browsing, prefer nodes with low latency and few failed probes; choose nodes for large downloads based on sustained throughput. url-test is useful for basic connectivity checks, not as a bandwidth ranking.