Skip to content

Instantly share code, notes, and snippets.

@djfdyuruiry
Created February 16, 2023 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djfdyuruiry/aa0f8164aefa62643b266a9cbc6035a8 to your computer and use it in GitHub Desktop.
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
#! /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