I know that How do you select the fastest mirror from the command line? exists, but it deals only with mirrors for ubuntu sources.
I want a application/script/command which would find the best mirror/server from a given list, which may or may not be related to Ubuntu.
For example https://www.archlinux.org/download/ gives a list of Arch Linux mirrors. Similarly many softwares have multiple mirrors. I want to find the best mirror from the given list. I am ready to add the mirrors one by one into some script/app/command.
If possible, the script/app/command should find the mirror which gives highest speed, rather than one that is closest.