Re: Converting Perl to PHP?
| From: | Sascha Schumann | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Converting Perl to PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4853@lists.php.net to get a copy of this message | ||
On Tue, 4 Jul 2000 aldham@lennon.postino.com wrote:
>
> Having recently done the exact reverse, the big change is to change all the
> curly brackets, { , to square brackets, [ .
> Then the DBI calls have to be changed.
>
> But as much as I like PHP, I have to wonder why you would convert from Perl
> to PHP. I went the other way because I felt that PHP was bogging down under
> load. When I ran the unix command top, I could see that serving up a fairly
> intensive page was pinning out the CPU for 2 to 3 seconds. So I converted to
> Perl, and then to Mod_Perl. Mod_Perl is over 20 times faster than PHP.
> I have put my benchmarks generated with the apache utility ab up at
> www.aldham.net/benchmarks/BenchMarks.php3 . All three benchmarks were run
> on the same web server, same binary, same database underneath (Postgres).
This benchmark only shows that your script performs badly. It does not
show that "Mod_Perl is 20 times faster than PHP." That is a non-applicable
very general statement.
- Sascha