[PHP4BETA] Re: benchmarking asp/php3/zend/pike
| From: | Zeev Suraski | Date: | Sun, 23 May 1999 01:24:01 +0000 |
| Subject: | [PHP4BETA] Re: benchmarking asp/php3/zend/pike | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1003@lists.php.net to get a copy of this message | ||
At 11:16 21/05/99 , Kai Voigt wrote:
The quicksort benchmark might not be represenative, since I used another implementation. I didn't found how Pike can call functions with address arguments ( like foo(&var); ) as shown in the PHP code. So I digged around for another algorithm, here the resultsSince your algorithm uses many less function calls, I tried it out:ASP 10secs PHP/Zend: 44secsPHP/Zend+Optimizer: 6secsPike: 4.5secs
PHP/Zend: 6.5 seconds PHP/Zend+optimizer: 2.5 secondsTwo points though: 1. I don't see much point in benchmarks. We posted them since people wanted them so badly. 2. I definitely don't see much point in benchmarking Pike and PHP, since they seem to target completely different audiences (Pike looks remarkably like a strongly-typed C-like language, and from what I recall, is pretty much object oriented, whereas PHP is loosely type perl-like language, with C influence, and doesn't lean towards OO, even though it supports it to a limited extent). I might as well take the opportunity to throw this to the air; PHP 4.0 has a much more modular design than PHP 3.0, and among other things, its interface with web servers is completely abstracted (a CGI binary, IIS and Apache layers are currently implemented). While I have no experience with the Roxen web server, I think that if people are interested, it may be nice to try and write the necessary code to interface with Roxen. Since I seem to recall Roxen is multithreaded, there'd probably be some quirks in the beginning since we haven't yet gotten around to check thread safety under UNIX (unfortunately, getting the C library functions to be thread safe isn't just a matter of selecting the multithreaded C runtime library :), but other than that, it should be a breeze. If anybody from Roxen or Roxen's users that's knowledgeable in Roxen's extension API is interested in doing this, contact us at php4beta@lists.php.net. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il -- PHP 4 Beta