Rank `pacman` mirrors

First, create a backup of current mirror list

# cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup

This will rank each individual mirror and sort them in order of fastest first:

# rankmirrors -n 0 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist