in reply to LWP::Parallel vs. HTTP::GHTTP vs. IO::Socket
I can't comment on LWP::Parallel directly, but I did some crude benchmarks on LWP, HTTP::GHTTP, HTTP::Lite and HTTP::MHTTP. What I found was hardly surprising:
- LWP is a big slow to load module, and once it's loaded, it's still pretty slow. It can do just about anything, but it's not a speed demon.
- Lite is quicker than LWP to load, and quicker in use, but it's still not what you would call fast.
- GHTTP as expected was fast to load, and fast in use. Much faster than either of the pure Perl modules. I can't get it to work under mod_Perl on Windows, but that's my only complaint.
- MHTTP was the only surprise. It has the most basic API, it's not object orientated like the others, but it's even faster than GHTTP - in both module load time, and in actual use..
UPDATE: It should be possible to compile the two c based modules on Windows, GHTTP and MHTTP. I believe that currently only GHTTP has a precompiled PPM available. Building the module on Windows, is just a case of asking a nice person with a compiler to do the work for you - CrazyPPM repository, interested?. I've recently spoken with Piers, and if you have any bugs to submit for MHTTP, let him know and he'll have a look at the for you.
"It's not magic, it's work..."