Callbacks are one reason UA is slower, winxp home, perl v5.8.7, LWP 5.819 (libwww-perl-5.821), GNU Wget 1.11.4
D:\>perl lwp-bench.pl LWP::Simple took 2.376 seconds Size: 64230 Transfer rate: 27036.45 bytes/sec Win32::I took 1.358 seconds Size: 64230 Transfer rate: 47312.34 bytes/sec LWP::UA took 2.717 seconds Size: 64230 Transfer rate: 23640.49 bytes/sec D:\>perl lwp-bench.pl LWP::Simple took 1.327 seconds Size: 64230 Transfer rate: 48385.75 bytes/sec Win32::I took 0.396 seconds Size: 64230 Transfer rate: 162095.51 bytes/sec LWP::UA took 1.878 seconds Size: 64230 Transfer rate: 34205.63 bytes/sec D:\>perl lwp-bench.pl LWP::Simple took 1.457 seconds Size: 64230 Transfer rate: 44091.30 bytes/sec Win32::I took 0.535 seconds Size: 64230 Transfer rate: 120084.79 bytes/sec LWP::UA took 2.035 seconds Size: 64230 Transfer rate: 31564.64 bytes/sec D:\> D:\>wget -c http://www.mirrorservice.org/sites/ftp.funet.fi/pub/langua +ges/perl/CPAN/authors/id/J/JD/JDB/Win32-In ternet-0.084.tar.gz --2008-12-03 23:29:27-- http://www.mirrorservice.org/sites/ftp.funet. +fi/pub/languages/perl/CPAN/authors/id/J/JD/JDB/Win 32-Internet-0.084.tar.gz Resolving www.mirrorservice.org... 212.219.56.135, 212.219.56.138, 212 +.219.56.139, ... Connecting to www.mirrorservice.org|212.219.56.135|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 64230 (63K) [application/x-gzip] Saving to: `Win32-Internet-0.084.tar.gz' 100%[================================================================= +=============>] 64,230 68.5K/s in 0.9s 2008-12-03 23:29:29 (68.5 KB/s) - `Win32-Internet-0.084.tar.gz' saved +[64230/64230] D:\>rm Win32-Internet-0.084.tar.gz D:\>wget -c http://www.mirrorservice.org/sites/ftp.funet.fi/pub/langua +ges/perl/CPAN/authors/id/J/JD/JDB/Win32-In ternet-0.084.tar.gz --2008-12-03 23:29:38-- http://www.mirrorservice.org/sites/ftp.funet. +fi/pub/languages/perl/CPAN/authors/id/J/JD/JDB/Win 32-Internet-0.084.tar.gz Resolving www.mirrorservice.org... 212.219.56.135, 212.219.56.138, 212 +.219.56.139, ... Connecting to www.mirrorservice.org|212.219.56.135|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 64230 (63K) [application/x-gzip] Saving to: `Win32-Internet-0.084.tar.gz' 100%[================================================================= +=============>] 64,230 59.2K/s in 1.1s 2008-12-03 23:29:39 (59.2 KB/s) - `Win32-Internet-0.084.tar.gz' saved +[64230/64230] D:\>rm Win32-Internet-0.084.tar.gz D:\>
maybe you can try LWP::Curl next?

In reply to Re^2: LWP slow downloads on windows (50 times faster?) by Anonymous Monk
in thread LWP slow downloads on windows by robobunny

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.