speed-test
Test your internet connection speed and ping using speedtest.net from the CLI
Top Related Projects
Command line interface for testing internet bandwidth using speedtest.net
Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more
Quick Overview
Speed-test is a command-line interface (CLI) tool for testing internet connection speed using speedtest.net. It provides a simple and efficient way to check download and upload speeds directly from the terminal, making it useful for quick network diagnostics and monitoring.
Pros
- Easy to use with a simple command-line interface
- Provides accurate speed test results from speedtest.net
- Lightweight and fast, with minimal dependencies
- Cross-platform compatibility (works on macOS, Linux, and Windows)
Cons
- Requires Node.js to be installed on the system
- Limited to speedtest.net as the testing service
- May not provide as detailed information as some GUI-based speed test tools
- Occasional issues with accuracy due to server selection or network conditions
Getting Started
To install and use speed-test, follow these steps:
# Install speed-test globally using npm
npm install --global speed-test
# Run a speed test
speed-test
# Run a speed test with more verbose output
speed-test --verbose
# Display help information
speed-test --help
After installation, you can simply type speed-test
in your terminal to run a speed test. The tool will display your download and upload speeds, as well as your ping.
Competitor Comparisons
Command line interface for testing internet bandwidth using speedtest.net
Pros of speedtest-cli
- Written in Python, making it more accessible for users familiar with this language
- Supports both command-line and programmatic usage
- Provides more detailed network information, including ping, download, and upload speeds
Cons of speedtest-cli
- Less frequently updated compared to speed-test
- May require additional dependencies or setup on some systems
- Slightly more complex to use for basic speed testing
Code Comparison
speedtest-cli:
import speedtest
s = speedtest.Speedtest()
s.get_best_server()
s.download()
s.upload()
speed-test:
const speedTest = require('speedtest-net');
(async () => {
const result = await speedTest({maxTime: 5000});
console.log(result);
})();
Key Differences
- Language: speedtest-cli is written in Python, while speed-test is a Node.js package
- Usage: speedtest-cli offers more detailed network information, while speed-test focuses on simplicity and ease of use
- Installation: speed-test can be easily installed via npm, while speedtest-cli may require additional setup on some systems
- Updates: speed-test is more frequently updated and maintained
Both tools serve the purpose of testing internet speed, but cater to different user preferences and technical requirements.
Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more
Pros of speedtest
- Self-hosted solution, offering more control over data and privacy
- Supports multiple servers for distributed testing
- Provides a web-based GUI for easy access and visualization
Cons of speedtest
- Requires server setup and maintenance
- May have less consistent results across different geographic locations
- Limited to web browser-based testing
Code comparison
speed-test:
const speedTest = require('speed-test')();
speedTest.on('data', data => {
console.log('Download speed:', data.speeds.download);
console.log('Upload speed:', data.speeds.upload);
});
speedtest:
<?php
$speedtest = new SpeedTest();
$result = $speedtest->run();
echo "Download speed: " . $result->getDownloadSpeed() . "\n";
echo "Upload speed: " . $result->getUploadSpeed() . "\n";
?>
Key differences
- speed-test is a Node.js CLI tool, while speedtest is a self-hosted web application
- speed-test uses the speedtest.net infrastructure, whereas speedtest allows custom server setups
- speed-test is more suitable for automated testing and integration into Node.js projects, while speedtest offers a user-friendly web interface
- speedtest provides more detailed metrics and customization options for network administrators
Both projects aim to measure internet speed, but they cater to different use cases and deployment scenarios.
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
speed-test
Test your internet connection speed and ping using speedtest.net from the CLI

Install
Ensure you have Node.js version 12.20+ installed. Then run the following:
npm install --global speed-test
Usage
$ speed-test --help
Usage
$ speed-test
Options
--json -j Output the result as JSON
--bytes -b Output the result in megabytes per second (MBps)
--verbose -v Output more detailed information
Links
Related
- fast-cli - Test your download speed using fast.com
Top Related Projects
Command line interface for testing internet bandwidth using speedtest.net
Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot