in reply to Re: mod_perl installed but not faster
in thread mod_perl installed but not faster

I specified in my node that Both scripts exist on the same server. I was hoping to test the speed of mod_perl as well as multiple requests through apache. that's why i did a simple fetch 10 times.
  • Comment on Re: Re: mod_perl installed but not faster

Replies are listed 'Best First'.
Re: Re: Re: mod_perl installed but not faster
by shotgunefx (Parson) on Oct 18, 2002 at 11:16 UTC
    mod_perl with Apache::Registry is only saving you the compilation time (compiling source/loading modules).

    The compilation and execution of your script compared to the fetch (opening a socket, sending the request, connecting, waiting for the server to fork, starting perl, compiling, executing and sending response) is a relativly small amount of time. If index.cgi is a slow script then it just makes the comparison even more moot.

    A better benchmark might be a script that contains a large data structure, lots of modules or simple parses a CGI request and prints a response.

    -Lee

    "To be civilized is to deny one's nature."