How to Compare Proxy Client Latency Fairly
A practical method for testing clients with the same node, network and request target
Direct answer
Run each proxy client sequentially against the same node, local network, request URL and timeout. Make enough requests to see variance, report the median and range, and keep failed samples in the dataset. This method produced 30 successful cross-client requests and a separate 96-check protocol snapshot on 2026-11-16. The evidence supports statements about that test window and setup. It does not establish a permanent ranking for FlClash, Mihomo or Xray.
Why a client comparison is easy to get wrong
A proxy client can change the local capture path, DNS handling, timeout policy, selected proxy group and core. If those conditions change between runs, a latency difference may come from the test design.
A single request is also unstable. Network scheduling and route variation can produce a large gap between the fastest and slowest request from the same client. Comparing one number from each client can easily rank noise.
The useful question is narrower. On this device, network and endpoint, did the client paths produce a repeatable difference?
Test conditions
The cross-client comparison used one production subscription and the same Japan 02 VLESS node.
- Local machine: Windows 10.
- Network: one fixed local network.
- Target:
https://www.gstatic.com/generate_204. - Requests per client: 10.
- Request timeout: 15 seconds.
- Request path: local SOCKS connection -> TLS -> HTTP HEAD -> first response byte.
- Execution: sequential client runs.
The clients were:
- FlClash 0.9.1 with the Mihomo core.
- Mihomo CLI 1.19.29.
- v2rayN 7.25.6 with its included Xray 26.10.21.
Each request started when the local proxy connection began. The timer stopped when the first response byte arrived. The test kept client name and version, attempt number, latency, success and HTTP status in a public CSV.
Results
All three client paths completed 10 of 10 requests.
- FlClash 0.9.1: 10/10, median 741 ms, range 592–2,724 ms.
- Mihomo CLI 1.19.29: 10/10, median 612.5 ms, range 529–1,897 ms.
- v2rayN with Xray 26.10.21: 10/10, median 743 ms, range 553–2,284 ms.
The ranges show why a median and raw samples matter. FlClash's first recorded request took 2,724 ms, while its other nine requests ranged from 592 to 849 ms. A report containing only the slowest request would tell a different story from one containing only the median.
Mihomo CLI had the lowest median in this window. FlClash and Mihomo CLI also share a Mihomo-core family, so this result does not compare three independent proxy algorithms.
A larger protocol snapshot
A separate run measured 16 logical lines with both VLESS and SS entries. Each protocol entry was checked in three rounds.
- Protocol entries: 32.
- Rounds: 3.
- Total checks: 96.
- Successful checks: 93.
- Success rate: 96.9%.
- VLESS success: 48/48.
- SS success: 45/48.
- Median of successful samples: 1,350 ms.
- Observed range: 390–4,044 ms.
Germany 01 SS timed out in all three rounds. A separate 15-second retest returned HTTP 504. Germany 01 VLESS worked. Keeping that failure in the dataset is more useful than deleting it to make the table look complete.
Across the 15 lines with numeric results for both protocols, SS had a lower median on 13 lines and VLESS had a lower median on two. This describes one short snapshot. It does not prove that SS will outperform VLESS on another network or during another time period.
Reproducible test procedure
- Choose one node and one request target.
- Record every client name and version.
- Use the same local network for all comparisons.
- Keep other VPN, TUN and proxy tools closed.
- Exclude client concurrency during the controlled comparison.
- Run enough requests to expose variance. Ten attempts provide a useful first sample for each client.
- Keep timeouts and failed requests in the raw data.
- Report the success count, median, minimum and maximum.
- Publish only non-secret fields from the test.
- Repeat on another network or time window before drawing a broader conclusion.
What to measure
Use an actual HTTPS request and define the start and stop points. The start can be the local proxy connection. The stop can be the first response byte, the completed request or another documented event.
Do not mix those definitions between clients. A client that reports a completed request is measuring something different from a client that reports time to first byte.
Record HTTP status as well as latency. A short response with an error status is not a successful network test.
How to handle failures
Keep the failure row. Record a timeout, HTTP status or client error and retest the same condition separately.
A failed single sample and a repeated route failure have different meanings. Germany 01 SS failed three scheduled rounds and then returned HTTP 504 in a separate retest. That pattern supports a route or endpoint problem in that window. One isolated timeout would have needed more evidence.
Check for local client state as well. An old profile, a different selected node or a stale connection can make a client comparison invalid.
What this test does not show
- It does not measure sustained download or upload bandwidth.
- It does not test UDP, voice, games or video streaming.
- It does not cover peak-hour congestion.
- It does not compare privacy, security or configuration quality.
- It does not establish long-term node availability.
- It does not support a universal client ranking.
Latency is the time needed to complete a defined request. Bandwidth describes how much data can move over time. A client with a lower latency median can still have slower large downloads.
How to reuse the public dataset
The raw sample table contains 30 rows with client, version, attempt, latency, success and HTTP status. The protocol table contains 32 rows with three round values, median and protocol.
Download the files and recalculate the summaries. Check whether your own client, network and target produce a similar pattern before using the conclusions.
The shortest useful checklist
Change one condition at a time. Keep raw failures. Report a distribution instead of a single number. Repeat the test on another network before treating a client difference as stable.
Disclosure
I work on XunGuangYun, the service that produced and published this redacted dataset. The article uses the public measurements and issue references above. It does not include customer identifiers or request a purchase.
原文:https://www.a8q9.cn/en/article/how-to-compare-proxy-client-latency-fairly-089a40.html