Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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


    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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-01-18 10:40 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (52 votes). Check out past polls.