"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have tried testing mod_perl with the following script: > > my $begin = (times)[0]; > print "Content-type: text/html\n\n"; > > sub fib { > $_[0] < 2 ? return $_[0] : return fib($_[0] - 1) + fib($_[0] - 2); > } > > $f = fib(29); > my $end = (times)[0]; > print($end - $begin); > > -- > > Well, if I run this script as a common CGI application, it usually runs > faster with 10% than if I run it using mod_perl. > (Under Windows 2000, mod_perl 2 with Active Perl 5.8.4). > > I know that the advantage of mod_perl is that it doesn't require time for > creating a new process and for the example above the time needed for > starting the process is much lower than for running the entire program, > but > does this mean that mod_perl doesn't lose the time for starting a new > process, but it executes the program slower? > Or why does the program runs slower with mod_perl? > > I have also tried to put a: > PerlRequire f:/web/presafierbinte/perl/benchmark.pl > > In the corresponding virtualhost section in httpd.conf, in order to > preload > this program at the server start, but it didn't change anything. > > Thank you. > > Teddy > mod_perl on Windows is not the greatest. It is single threaded. If you go to the mod_perl docs page there is a bit of information explaining why.
Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>