Re: PHP Benchmark

php.internals

Joerg Behrens

22 years ago
----- Original Message ----- From: "Sebastian Bergmann" <sebastian@php.net> To: <internals@lists.php.net> Sent: Saturday, November 15, 2003 8:13 AM Subject: [PHP-DEV] PHP Benchmark
> A while ago I posted [1] a script that performed some micro-benchmarks > on PHP. > > I have now refined this benchmark by splitting the monolithic script > into one script per micro-benchmark thus performing each benchmark with > a fresh PHP interpreter. > > The benchmark "suite" is available at > > http://www.sebastian-bergmann.de/PHP_Benchmark/ > > Any comments, feedback, corrections and additions are welcome, > Sebastian
Just for the records.. ./run.sh PHP 4.3.4 (64bit) Object Creation: 87530 objects created per second Member Access: 136673 member accesses per second Method Calls: 95166 method calls per second Array Creation: 134483 arrays created per second Array Index Access: 94235 array elements accessed by index per second Array Key Access: 258844 array elements accessed by key per second Basic FP: 468412 basic FP operations per second Complex FP: 255004 complex FP operations per second Nested Loops (FP): 138418 nested loops per second Nested Loops (Int): 137983 nested loops per second CPU: Mips r12000 Mhz: 270 Compiler: mipspro cc Note: 32bit binary is 1-5% faster. regards Joerg

Sebastian Bergmann

22 years ago
Joerg Behrens wrote:
> Just for the records..
Thank you, J?rg, but I don't think posting results here is needed. What is needed is a decision on whether to develop this project on cvs.php.net and if so in what module (PEAR or own) or to put it on SourceForge.net. I already received offers for support and put a preliminary TODO list online.
-- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/