Philip Mak wrote:
> On Tue, Jul 30, 2002 at 11:17:52AM +0300, y wrote:
> 
>>How do I know if Apache::ASP is using the benefits of mod_perl?
> 
> 
> As I understand it, Apache::ASP *only* runs under mod_perl (unless you
> deliberately configured it to run in CGI mode using the 'asp'
> executable). If you have "PerlHandler Apache::ASP" in your httpd.conf,
> you are using mod_perl.
> 
> 
>>ab (Apache Bench) shows that Apache::ASP pages are A LOT slower than 
>>Apache::Registry pages.
> 
> 

Unless you set NoState 1, Apache::ASP will create the expensive
$Session & $Application objects.  Further, because ab does not
remember cookies set, a new $Session will be created each request,
so you end up with a session DoS attack of sorts with ab.

Apache::ASP is slower than Apache::Registry however because it
creates a richer application development environment, with
embedded perl, a event model driven by global.asa, & objects
like $Response/$Request already created that do a lot of the
work for you.

The benchmarks at http://chamas.com/bench/ will show you that
of the perl application enviroments, Apache::ASP does pretty
well on big scripts like h2000, but is just about as slow
on trivial HelloWorld because it has significant per request
overhead.  The benchmarks run with NoState 1 set.

At the end of the day, figure out how fast you need your
application to go, and make sure it gets there, but don't
spend any extra time on performance that you do not need to.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:714-625-4051
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to