Re: [PHP4BETA] Some results with php3,php4 and a perl cgi
| From: | M.Brands | Date: | Tue, 27 Jul 1999 16:19:11 +0000 |
| Subject: | Re: [PHP4BETA] Some results with php3,php4 and a perl cgi | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2849@lists.php.net to get a copy of this message | ||
On Tue, Jul 27, 1999 at 11:45:04AM -0400, Rasmus Lerdorf allegedly wrote:
> > ./configure --with-apache=../apache_1.3.6 --with-mysql --disable-debug
> > --enable-track-vars --enable-magic-quotes
> >
> > though I still see -g in CFLAGS for both PHP3 and PHP4 (Shouldn't
> > disable-debug remove it ?)
> >
> > I ran the scripts via wget
> > PHP3 time -p wget http://localhost:8000/database.phtml -o
> > /dev/null
> > real 3.13
> > user 0.01
> > sys 0.01
> >
> > PHP4 time -p wget http://localhost:9000/database.phtml -o
> > /dev/null
> > real 1.41
> > user 0.02
> > sys 0.02
> >
> > Perl time -p wget
> > http://localhost:7000/cgi-bin/database.cgi -o /dev/null
> > real 1.71
> > user 0.00
> > sys 0.01
> >
> > Somehow, I believe PHP4 can be faster though my Perl CGI script seems
> > to run quite fast. Anyway, more data points for the gurus to look at
>
> How about trying the same thing using more requests and fewer rows
> selected each time to more accurately reflect something people might do in
> the real world? Use the ApacheBench program (ab) to send a fixed number
> of requests. eg.
>
> ab -c 5 -n 500 -k http://whatever
>
> Also, if you could run this from a different machine instead of using the
> loopback it would be more accurate.
>
> -Rasmus
Nice results. One question though: did you use modperl?
Mathijs