A Bash script to test download speed from multiple URLs using popular download tools (wget, wget2, axel, aria2c) on Linux.
Supports single and multi-connection tests, shows real-time progress, speed, and estimated remaining time, and prints a summary with averages at the end.
- Works on Ubuntu, AlmaLinux, Rocky Linux.
- Supports tools:
wget,wget2,axel,aria2c. - Supports single and multi-connection modes.
- Automatically installs missing tools.
- Shows live download progress and speed.
- Generates summary table with final speed for each test.
- Calculates average speed per tool and mode across multiple URLs.
- Fully interactive: choose tools, modes, or run all automatically.
- Linux system (tested on Ubuntu 20+, AlmaLinux 8+, Rocky Linux 8+)
- Bash shell
sudoaccess for installing missing tools- Internet connection
- Clone the repository:
git clone https://github.com/mobinhost/SpeedTest.git
cd speedtest-bash- Make the script executable:
chmod +x speedtest.shRun the script:
./speedtest.shThe script will:
- Ask you to select download tools (e.g.,
wget,aria2c). - Ask you to select test modes (
Single connection,Multi connection). - Download the test files while showing real-time progress and speed.
- Generate a summary table with final speeds.
- Calculate average speed per tool/mode.
Select tools (comma separated):
1) wget
2) wget2
3) axel
4) aria2c
Enter choice(s) [e.g. 2,3]:
Select test modes (comma separated):
1) Single connection
2) Multi connection
Enter choice(s) [e.g. 1,2]:
During download, progress bars with speed and estimated remaining time will be displayed. After all tests, a summary table with averages is printed.
wgetdoes not support multi-connection, so multi-mode will be skipped for it.wget2,axel, andaria2csupport multi-connection downloads.- Speeds are converted to MB/s for summary and average calculations.
- Temporary log files are used for parsing speeds and removed automatically.
URL TOOL MODE SPEED
------------------------------------------------------- -------- -------- ---------------
https://nbg1-speed.hetzner.com/1GB.bin wget Single 87.3 MB/s
https://nbg1-speed.hetzner.com/1GB.bin aria2c Multi 130 MB/s
https://lon.speedtest.clouvider.net/1g.bin wget Single 85.2 MB/s
https://lon.speedtest.clouvider.net/1g.bin aria2c Multi 128 MB/s
Average Speeds (across all URLs):
TOOL MODE AVG SPEED
aria2c Multi 129.00 MB/s
wget Single 86.25 MB/s
This project is licensed under the MIT License. See LICENSE for details.