Interesting but isn't the difference within 
statistical "fluctuation" ? :-)

Did you compare them to the pure C module (without embed 
Perl)? 

Peter Bi

> If I compiled a c module that embed a perl interpreter and
> I benchmark this again the same module in mod_perl
> 
> I got a big difference in favor of mod_c.
> 
> For example mod_c give with ab:
> 
> Requests per second:    674.76 [#/sec] (mean)
> Time per request:       11.86 [ms] (mean)
> Time per request:       1.48 [ms] (mean, across all concurrent requests)
> 
> mod_perl gives:
> 
> Requests per second:    499.75 [#/sec] (mean)
> Time per request:       16.01 [ms] (mean)
> Time per request:       2.00 [ms] (mean, across all concurrent requests)
> 
> Why is mod_perl so slow compare to a mod_c that embed perl. 
> 
> thanks.
> 
> 
> 

Reply via email to