Hi fellow Monks!

A Perl script I just started to write should download a bunch of web pages from two different domains (up to 30 pages from each domain), parse each page and collect certain information from it, and then at the very end (after all pages have been fetched and all info extracted), a "report" of sorts should be printed.

Assumptions:

Problem: Performance

The script will be triggered manually, and each second it takes to complete is a second the user will spend twiddling their thumbs. Thus the desire to complete quickly.

Parsing will undoubtedly be very fast compared to downloading, so it is the latter where I'd really like to see some performance boost compared to simply doing sequential LWP::UserAgent requests.
My (limited) experience with this kind of stuff suggests that one or more of the following might really help:

(Please tell me if I'm missing something entirely.)

Solution: CPAN! Problem: What module to use?

Searching CPAN reveals many modules that seem to be able to help Perl developers with some of the above download acceleratiion techniques, including...

...which is kind of overwhelming.

If there are any Monks out there who have experience with this kind of problem, would you mind sharing some of it with your fellow acolyte? :)

To the point:
Which CPAN module, or combination of CPAN modules, or other solution, is known to provide the best performance and reliability for doing a whole bunch of GET requests against two different domains?


In reply to Fastest way to download many web pages in one go? by smls

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.