Hi,

I couldn't find an option to make wget download several URLs in parallel; 
searching the mailing list archives I found that

Mauro Tortonesi said on Thu, 13 Jul 2006 05:38:05 -0700:

>no, there is no plan to implement parallel download at the moment.
>however, please notice that it is highly unlikely that opening more than  one 
>connection with 
>the same server will speed up the download process.  parallel download makes 
>sense only when 
>more than one server is involved.

I would like to advocate for a multithreading/parallel download feature and I 
believe the 
last quoted sentence above is simply false; parallel downloading provides 
considerable 
speedups in almost all settings. You can do your own experiments simply enough, 
here 
are mine: I downloaded three copies of the Linux kernel sources from kernel.org 
in parallel 
and compared this to downloading them serially. At work, with a fast 
connection, parallel 
downloading provides a speedup of about 40%; at home, with a slow DSL line, I 
still get 
a speedup of 25%. All this is on single processor machines.

======================
At home:

bash-3.00$ time wget -q 
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.10.tar.gz              
                                                       
  
  real    6m52.016s
  user    0m1.972s
  sys     0m3.595s
  
 bash-3.00$ wc -c linux-2.6.17.10.tar.gz
  51709946 linux-2.6.17.10.tar.gz
  
bash-3.00$ time wget -q 
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.10.tar.gz & time wget 
-q http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.9.tar.gz & time 
wget -q http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.8.tar.gz &
 [1] 4056
 [2] 456
 [3] 984
 bash-3.00$ 
 real    15m39.831s
 user    0m2.092s
 sys     0m4.045s
 
 real    15m40.436s
 user    0m1.742s
 sys     0m3.805s
 
 real    15m42.692s
 user    0m1.872s
 sys     0m4.075s

=======================
At work:

bash-3.00$ time wget -q 
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.10.tar.gz  
  
  real    0m42.971s
  user    0m1.161s
  sys     0m2.062s
  
bash-3.00$ time wget -q 
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.10.tar.gz & time wget 
-q http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.9.tar.gz & time 
wget -q http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.8.tar.gz &
[1] 2560
[2] 3096
[3] 2840
bash-3.00$ 
real    0m47.265s
user    0m1.261s
sys     0m2.213s

real    0m47.851s
user    0m0.951s
sys     0m2.243s

real    1m14.882s
user    0m1.281s
sys     0m2.403s

========================

Best regards,
  Axel

Reply via email to