You are not logged in.

#1 2013-02-27 00:23:13

kdar
Member
From: Alabama!!!
Registered: 2009-06-27
Posts: 353

How is speed reported in curl when piping output?

Does anyone knows how curl reports it's Average Dload speed when one pipes the output into some other utility (for example bzip2 -d)?

For example.. here what I got:

time curl http://lacasa.uah.edu/portal/tmp/bzip2.cfd/Chrome_18.0.1025308.9.tar.bz | bzip2 -d > /dev/null

Average Dload is 261k

time curl http://lacasa.uah.edu/portal/tmp/bzip2.cfd/Chrome_18.0.1025308.9.tar.bz > new.tar.bz

Average Dload 2000k
....
Using wget

wget http://lacasa.uah.edu/portal/tmp/bzip2.cfd/Chrome_18.0.1025308.9.tar.bz

Average Dload 2000k

Does the Average Dload speed in first case calculated by taking the actual time it takes to execute the entire line? or only for performing download.

Last edited by kdar (2013-02-28 05:09:00)

Offline

Board footer

Powered by FluxBB