Speed and latency testing of Ubuntu and Debian mirrors.
Mirror list sources:
Copy one of the commands below.
curl -sL https://raw.githubusercontent.com/walle89/apt-mirror-speed-test/main/ubuntu-apt-speed.sh | bash
wget -nv -O - https://raw.githubusercontent.com/walle89/apt-mirror-speed-test/main/ubuntu-apt-speed.sh | bash
Open a terminal and run the script.
Testing SE mirrors for speed...
[1/7] https://ftpmirror1.infania.net/ubuntu/ --> 1298 KB/s - ms
[2/7] http://ftp.acc.umu.se/ubuntu/ --> 8 KB/s - 19.895 ms
[3/7] https://mirror.bahnhof.net/ubuntu/ --> 1000 KB/s - 12.575 ms
[4/7] http://ftp.lysator.liu.se/ubuntu/ --> 1219 KB/s - 15.141 ms
[5/7] http://ubuntu.mirror.su.se/ubuntu/ --> 1538 KB/s - 12.280 ms
[6/7] http://mirror.zetup.net/ubuntu/ --> 2564 KB/s - 7.295 ms
[7/7] http://archive.ubuntu.com/ubuntu/ --> 793 KB/s - 23.976 ms
Top 5 fastest mirrors
http://mirror.zetup.net/ubuntu/ 2564 7.295
http://ubuntu.mirror.su.se/ubuntu/ 1538 12.280
https://ftpmirror1.infania.net/ubuntu/ 1298
http://ftp.lysator.liu.se/ubuntu/ 1219 15.141
https://mirror.bahnhof.net/ubuntu/ 1000 12.575
Add an Alpha-2 country code as a parameter at the end of the command.
Example for testing United Kingdom (country code GB
) mirrors:
curl -sL https://raw.githubusercontent.com/walle89/apt-mirror-speed-test/main/ubuntu-apt-speed.sh | bash -s GB
List of available country codes: http://mirrors.ubuntu.com/
If none is provided, the script will select country to test by external IP GeoIP location from ipinfo.io
.
To test all mirrors listed on Launchpad, add ALL
as a parameter at the end of the command.
curl -sL https://raw.githubusercontent.com/walle89/apt-mirror-speed-test/main/ubuntu-apt-speed.sh | bash -s ALL
Mirror list source: https://www.debian.org/mirror/list-full
Copy one of the commands below.
curl -sL https://raw.githubusercontent.com/walle89/apt-mirror-speed-test/main/debian-apt-speed.sh | bash
wget -nv -O - https://raw.githubusercontent.com/walle89/apt-mirror-speed-test/main/debian-apt-speed.sh | bash
Open a terminal and run the script.
Testing mirrors for speed...
[1/327] http://mirrors.asnet.am/debian/ --> 211 KB/s - ms
[2/327] http://ftp.am.debian.org/debian/ --> 253 KB/s - ms
[3/327] http://debian.unnoba.edu.ar/debian/ --> 52 KB/s - 211.217 ms
[4/327] http://ftp.tu-graz.ac.at/mirror/debian/ --> 382 KB/s - ms
[5/327] http://debian.anexia.at/debian/ --> 638 KB/s - 27.363 ms
[6/327] http://debian.lagis.at/debian/ --> 372 KB/s - 33.781 ms
[7/327] http://debian.mur.at/debian/ --> 187 KB/s - ms
[8/327] http://debian.sil.at/debian/ --> 427 KB/s - 28.483 ms
[9/327] http://mirror.alwyzon.net/debian/ --> 488 KB/s - 26.552 ms
...
[327/327] http://ftp.is.co.za/debian/ --> 0 KB/s - 169.425 ms
Top 5 fastest mirrors
http://mirror.zetup.net/debian/ 2083 7.407
http://mirrors.rackhosting.com/debian/ 1612 6.616
http://artfiles.org/debian/ 1428 11.669
http://mirror.one.com/debian/ 1250 6.184
http://mirror.wtnet.de/debian/ 1219 11.088
Based on Baeldung's curl Transfer Speed script.