Created
February 16, 2023 23:59
-
-
Save djfdyuruiry/aa0f8164aefa62643b266a9cbc6035a8 to your computer and use it in GitHub Desktop.
Outputs the response times for each Ubuntu apt-get mirror from fastest to slowest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
set -e | |
wget -qO - mirrors.ubuntu.com/mirrors.txt | xargs -I {} curl -w "%{time_total} - {}\n" -s -o /dev/null {} | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment