Re: [PHP4BETA] Performance question
| From: | Andi Gutmans | Date: | Thu, 23 Dec 1999 05:47:33 +0000 |
| Subject: | Re: [PHP4BETA] Performance question | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-8422@lists.php.net to get a copy of this message | ||
David,
It really depends what your scripts do. If they don't have a lot of PHP code and mostly connect to databases then that is where your overhead is and PHP 4 won't be able to help too much. Also by default the Beta version (because it is a development version) is compiled in debug mode. Configuring it with --disable-debug should speed things up a bit if you haven't done so already.
Andi
At 04:38 PM 12/22/99 -0500, David Munsey-Kano wrote:
Well, I compiled and installed the beta 4 on my poor little DEC Alphastation 255/233. When I did some quick and dirty timings on my Oracle database application with the Beta version 4 as compared to php 3.0.12 (both running as part of Apache 1.3.6) they came out very close to the same. (Well within the accuracy of my finger on my stopwatch :-) search "fair" in all php4: 6.2 seconds php3: 5.9 search "dartmouth" in all php4: 6.8 php3: 6.7 search "dartmouth" in title php4: 4.8 php3: 4.7 I know that the above test is probably spending much of its time in the oracle ConText search engine, although the same search done from within SQL*Plus *is* much quicker... Luckily, I'll be moving to a faster Unix box as soon as we can get Oracle installed there so I can rebuild apache/php for that platform. Maybe that will get my searches back under the 2-3 second level again. I am also planning on trying a different database schema to simplify the sql/ConText queries that are required for my searches. But I already know that won't save more than a second or two, because I can simulate those results with my existing schema. Thanks for all your help. I'm going to sign-off the list for now, as I am not developing version 4 and this list has quite a bit of traffic! If you reply to this, please reply to my individual message too and I will do the same. Sincerely, David ----------- David Munsey-Kano wrote: rasmus@php.net wrote:--- Andi Gutmans <andi@zend.com> http://www.zend.com/leastHi! I am new to this list and have a question. I have had some experience programming ColdFusion and PHP3 and the performance (atperformancewith my servers) of ColdFusion is superior. How much better is the performance of PHP version 4 as compared to PHP3? I am doing Oracle database programming.What type of server are you on? NT? If so, you are comparing apples and oranges. Try PHP on a Unix server. PHP 4 will provide betteron NT, but with PHP 3 the Windows version is really just for prototyping applications. PHP 3 on Windows (and NT itself if you want my opinion) is not a production quality solution. PHP 4 attempts to become production quality even on Windows and you should try out the ISAPI version if you want to do comparisons on NT. -Rasmus-- David Munsey-Kano Dartmouth College (603) 646-1320 -- David Munsey-Kano Dartmouth College (603) 646-1320 The world is full of zanies and fools, who don't believe in sensible rules, and don't believe what sensible people say, and because these daft and dewey-eyed dolts keep building up impossible hopes, impossible things keep happening everyday! -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net