mrkeyoor.com_
Wed 12 Aug 05:59 UTC
Dev Toolsevaluationupdated 12 Aug 2026

CloudflareSpeedTest

CloudflareSpeedTest is a command-line utility for finding the fastest Cloudflare CDN IP address for your specific location. Its primary documentation is in Chinese, but the tool is fully usable by English speakers. It solves the common problem where Cloudflare's automatic IP assignment provides a slow or high-latency connection, particularly for users in regions like mainland China.

Verdict

CloudflareSpeedTest is a sharp, effective, single-purpose tool that does its job exceptionally well. For its target audience struggling with poor Cloudflare performance, it's an essential utility. It's fast, simple to use, and provides the exact data you need to make an informed decision. If you need to find a better Cloudflare IP, this should be the first tool you reach for.

Setup5/5Download and run; pre-compiled binaries for all major platforms.
Docs4/5Excellent and detailed, but primarily in Chinese.
Community4/5Extremely popular and actively maintained with very few open issues.
Maturity5/5Stable, focused, and has been refined over multiple versions.

Who it’s for

Users in regions with poor default Cloudflare routing who want to manually find a faster connection.
System administrators who need to hardcode a performant Cloudflare IP for a server or application.
Power users looking to optimize their connection to a specific Cloudflare-hosted website or service.
Anyone who wants to test their network's performance against different CDN endpoints.

Who it’s NOT for

Non-technical users who are uncomfortable with the command line or don't know how to use an IP address once they find it.
Anyone trying to optimize Cloudflare's WARP service, as the tool explicitly states it does not support the UDP protocol WARP uses.
Users looking for an automated, 'set-it-and-forget-it' solution; this is a tool for manual, on-demand testing.
People who intend to run the test through a proxy, which will produce inaccurate and useless results.

Setup reality

Setup is as simple as it gets for a command-line tool. The project provides pre-compiled, executable binaries for Windows, macOS, and Linux, so there's no need to install Go or build from source. For Windows users, it's a matter of downloading a ZIP file, extracting it, and double-clicking the cfst.exe file. For Linux and macOS, the README provides clear, copy-and-paste commands to download, extract, set permissions, and run the tool. It's a dependency-free experience that takes less than two minutes.

Cloudflare is a foundational piece of the modern internet, but its 'anycast' network routing, which directs you to the 'closest' data center, isn't always perfect. For many users, particularly those in mainland China, the automatically assigned IP address can be a bottleneck, resulting in high latency, packet loss, and slow speeds. Manually sifting through Cloudflare's thousands of public IPs to find a better one is an impossible task. This is the precise, real-world problem that XIU2/CloudflareSpeedTest was built to solve.

It's a focused command-line utility, written in Go, that automates the process of finding the optimal Cloudflare IP for your specific network connection. It's not a generic network monitoring suite; it's a specialized tool for a common and frustrating issue.

How It Works

The tool's methodology is both simple and effective. It operates in a multi-stage process to efficiently narrow down the vast pool of potential IPs.

First, it performs a broad latency test against a large number of IPs sampled from Cloudflare's public IP ranges. By default, this is a TCP-based ping (TCPing) on port 443, which mimics the initial handshake of an HTTPS connection. This quickly filters out IPs that are unreachable or have unacceptably high latency from your location. Users can also switch to an HTTP-based ping (-httping) which can sometimes provide more realistic results and has the added benefit of reporting the IP's datacenter location code (e.g., LAX, SJC) during the initial pass.

Second, after the latency tests are complete, the software sorts the results, prioritizing low latency and zero packet loss. It then takes the top performers from this list—10 by default, but configurable with the -dn flag—and subjects them to a more rigorous download speed test. This is the crucial step, as low latency does not always guarantee high throughput. The tool downloads data from a test URL for a set period (defaulting to 10 seconds) to measure the actual download speed in megabytes per second (MB/s).

Finally, it sorts these fully tested IPs by download speed and presents a clean, tabular report in your terminal of the best-performing options. A complete, comma-separated value (CSV) file named result.csv is also saved in the same directory, containing the results for all tested IPs, ready for further analysis or scripting.

Strengths and Standout Features

The project's greatest strength is its accessibility and ease of use. By providing pre-compiled binaries for Windows, macOS, and Linux, the author has removed nearly all friction from the setup process. There's no need to install a Go toolchain or wrestle with dependencies. The README provides explicit, copy-pasteable commands, even including download mirrors for users inside the Great Firewall of China. This focus on the end-user experience is commendable.

Its performance, thanks to being a concurrent Go application, is another major advantage. You can configure it to use hundreds of testing threads (-n 200 is the default), allowing it to check a massive number of IPs in minutes, not hours. This speed is essential for a tool designed for quick, on-the-spot testing.

The degree of customization available through command-line flags allows users to tailor the tests to their specific needs. You can change the number of latency pings, the duration of the speed test, the number of IPs to test for speed, and even the specific port and test URL. This flexibility means you can use it not just for Cloudflare but for any service with multiple IP endpoints, provided you can supply a suitable test URL.

Weaknesses and Rough Edges

While the tool itself is excellent, the most significant hurdle for a global audience is the language barrier. The primary documentation in the README is written in Chinese. While the command examples and output are universally understandable, the detailed explanations, troubleshooting tips, and community discussions in the GitHub issues are largely inaccessible to non-Chinese speakers. A translated version of the README would significantly broaden its appeal.

Furthermore, while it's easy to run, it is fundamentally a power-user tool. It gives you a list of IPs, but it doesn't tell you what to do with them. A user needs to have the prerequisite knowledge to, for example, edit their system's hosts file or configure a specific application to use the new IP. This isn't a flaw in the tool itself, but it defines its audience.

The README contains important warnings that a casual user might overlook. For instance, running the tool through a proxy will invalidate the results, and using the HTTPing mode with high concurrency could be flagged as a network scan by your ISP or cloud provider. These nuances require a certain level of technical awareness to avoid confusion or potential trouble.

Community and Project Health

With over 28,000 GitHub stars, CloudflareSpeedTest is immensely popular and widely adopted. Its health as an open-source project appears excellent. The last code push was on July 25, 2026, and the latest release was in April 2026, indicating active and ongoing development. Most impressively, there are only 27 open issues, an exceptionally low number for a project of this scale. This suggests a stable, mature codebase and a maintainer who is responsive to community feedback.

Conclusion: Where It Fits

CloudflareSpeedTest is not a sprawling network analysis suite. It is a precision instrument designed to solve one problem: finding a faster route to the Cloudflare network. In that, it succeeds brilliantly. It's the perfect tool for any individual or administrator who suspects their default Cloudflare connection is underperforming. Instead of relying on guesswork, you can run a quick, empirical test from your own network and get a clear, actionable list of better alternatives. For anyone in its target demographic, CloudflareSpeedTest is an indispensable utility.

Alternatives

ProjectWhat it isPick it when
CloudflareScannerA tool to scan Cloudflare IP ranges to find the best-performing IP for your network.You want a similar tool with a different implementation or interface.
better-cloudflare-ipA Go program to find the best Cloudflare IP addresses available in your area.You're looking for another popular and well-regarded alternative to compare results.
gpingA command-line tool that pings a host and graphs the latency over time.You already have a small list of candidate IPs and just want to visually compare their latency and stability, not discover new ones or test download speed.

What people are saying

  1. [github-trending] XIU2/CloudflareSpeedTest

Sources

  1. XIU2/CloudflareSpeedTest GitHub Repository