Re: PHP Benchmark

From: Date: Sun, 16 Nov 2003 20:19:23 +0000
Subject: Re: PHP Benchmark
Groups: php.internals 
Request: Send a blank email to internals+get-5498@lists.php.net to get a copy of this message
----- 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

« previous php.internals (#5498) next »