Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: http Redirector

by echo (Pilgrim)
on Sep 23, 2001 at 14:26 UTC ( #114165=note: print w/replies, xml ) Need Help??


in reply to http Redirector

This code handles one request at a time, hence serializing all requests. If the request rate is high, I don't see how this can bring more performance than Apache, which if properly tuned will have multiple processes ready to handle simultaneous requests.

Replies are listed 'Best First'.
Re: Re: http Redirector
by merlyn (Sage) on Sep 23, 2001 at 20:34 UTC
    Apache has far more overhead from connect to response. And ultimately, all requests are serialized anyway, because only one process can accept at a time. And on a monoprocessor machine, the ultimate code execution is serial as well {grin}.

    I'd imagine this script (the original version or my version) would handle demonstratably more requests per second than Apache would.

    -- Randal L. Schwartz, Perl hacker


    update

    Yes, I just benchmarked it. My apache did about 80 requests per second, and my Perl program did about 750(!) requests per second. This was for 10 concurrent requests, timed over 1000 requests, using the apache bench program.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://114165]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2019-04-23 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (117 votes). Check out past polls.

    Notices?