This script can determine the best mirror of cygwin before installing cygwin.
Below oneliner downloads and executes benchmark_cygwin_mirrors.bat
.
powershell -Command "Import-Module BitsTransfer; Start-BitsTransfer https://gist.githubusercontent.com/kou1okada/9581971e32cadc6306fc/raw/benchmark_cygwin_mirrors.bat" && benchmark_cygwin_mirrors.bat
Below is an example of the result.
>powershell -Command "Import-Module BitsTransfer; Start-BitsTransfer https://gist.githubusercontent.com/kou1okada/9581971e32cadc6306fc/raw/benchmark_cygwin_mirrors.bat" && benchmark_cygwin_mirrors.bat
Benchmark cygwin mirrors.
0.3449061 http://mirrors.neusoft.edu.cn/cygwin/
Update the best: 0.3449061 http://mirrors.neusoft.edu.cn/cygwin/
0.2414021 http://mirrors.ustc.edu.cn/cygwin/
Update the best: 0.2414021 http://mirrors.ustc.edu.cn/cygwin/
0.1870961 ftp://ftp.iij.ad.jp/pub/cygwin/
Update the best: 0.1870961 ftp://ftp.iij.ad.jp/pub/cygwin/
0.0369863 http://ftp.iij.ad.jp/pub/cygwin/
Update the best: 0.0369863 http://ftp.iij.ad.jp/pub/cygwin/
0.6265428 http://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/
0.5858283 http://sourceware.mirrors.tds.net/pub/sourceware.org/cygwin/
The best mirror is 0.0369863 http://ftp.iij.ad.jp/pub/cygwin/