VPS one-click scripts
All scripts / Tutorials / speedtest-cn

Experimental China 3-Network Speedtest Tutorial

This tutorial shows how to attempt China Telecom / Unicom / Mobile nodes with the experimental xyz.sh/speedtest-cn script. The test often cannot finish from outside the mainland; for everyday use run xyz.sh/speedtest --overseas or xyz.sh/all.

Command
$ curl -fsSL xyz.sh/speedtest-cn | bash

Details · xyz.sh/speedtest-cn · Last updated:

Prerequisites

A Linux VPS that can reach speedtest.net (x86_64, aarch64, armv7…); root is optional.

Each node test uses traffic — a few hundred MB per node.

Steps

Optional: read the source with curl -fsSL xyz.sh/speedtest-cn.sh and compare xyz.sh/speedtest-cn.sh.sha256.

List nodes first: curl -fsSL xyz.sh/speedtest-cn | bash -s -- --list

Default run, 1–2 nodes per carrier: curl -fsSL xyz.sh/speedtest-cn | bash -s -- -y

Filter by region (east / north / south / west): curl -fsSL xyz.sh/speedtest-cn | bash -s -- --region east -y

Only some carriers: --carrier ct,cu (ct Telecom, cu Unicom, cm Mobile); every node: --all-nodes; custom nodes: --servers 5396,24447.

How to verify

At the end a table of carrier / node / download / upload / latency / loss is printed; failed nodes are shown as skipped. The exit code is 2 if every node failed.

How to undo or uninstall

Without root, or if you decline installing, the CLI lives in a temporary directory that is removed on exit. If it was installed to /usr/local/bin/speedtest, remove it with curl -fsSL xyz.sh/speedtest | bash -s -- --uninstall.