Code-Hex / pget
- четверг, 14 июля 2016 г. в 03:12:13
Go
Parallel file download client
Download using a parallel requests
brew tap Code-Hex/pget
brew install pget
Install
$ go get github.com/Code-Hex/pget/cmd/pget
Update
$ go get -u github.com/Code-Hex/pget/cmd/pget
% pget -p 6 URL
Options:
-h, --help print usage and exit
-v, --version display the version of pget and exit
-p, --procs <num> split ratio to download file
-o, --output <PATH|FILENAME> output file to PATH or FILENAME
-t, --timeout <seconds> timeout of checking request in seconds
--check-update check if there is update available
--trace display detail error messages
URL: http://ubuntutym2.u-toyama.ac.jp/ubuntu/16.04/ubuntu-16.04-desktop-amd64.iso
Using
time wget http://ubuntutym2.u-toyama.ac.jp/ubuntu/16.04/ubuntu-16.04-desktop-amd64.iso
time pget -p 6 http://ubuntutym2.u-toyama.ac.jp/ubuntu/16.04/ubuntu-16.04-desktop-amd64.iso
Results
wget 3.92s user 23.52s system 3% cpu 13:35.24 total
pget -p 6 10.54s user 34.52s system 25% cpu 2:56.93 total
You can download from here