← 返回命令列表

Linux command

speed-test 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run speed test

speed-test

JSON output

speed-test --json

Output in bytes

speed-test --bytes

Verbose output

speed-test --verbose

说明

speed-test measures internet connection performance by testing download speed, upload speed, and ping latency against speedtest.net servers. It automatically selects the nearest server to provide representative results. The tool displays results in megabits per second (Mbps) by default, with an option to show bytes per second instead. JSON output mode is available for integration with monitoring scripts and dashboards. Results reflect the connection speed between your device and the selected test server, which may differ from speeds to other destinations due to network routing, congestion, and ISP peering arrangements.

参数

--json
JSON output format.
--bytes
Show in bytes/second.
--verbose
Detailed output.
--version
Show version.
--help
Show help.

FAQ

What is the speed-test command used for?

speed-test measures internet connection performance by testing download speed, upload speed, and ping latency against speedtest.net servers. It automatically selects the nearest server to provide representative results. The tool displays results in megabits per second (Mbps) by default, with an option to show bytes per second instead. JSON output mode is available for integration with monitoring scripts and dashboards. Results reflect the connection speed between your device and the selected test server, which may differ from speeds to other destinations due to network routing, congestion, and ISP peering arrangements.

How do I run a basic speed-test example?

Run `speed-test` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --json do in speed-test?

JSON output format.