Quoting Sebastian Bergmann sebastian@php.net:
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--
[1]
http://www.sebastian-bergmann.de/blog/archives/104_PHP_MicroBenchmarkSuite.html
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/
--
PHP 5.0.0b3-dev (12 Nov 2003)
Object Creation: 516997 objects created per second
Member Access: 743309 member accesses per second
Method Calls: 665755 method calls per second
Array Creation: 821922 arrays created per second
Array Index Access: 590843 array elements accessed by index per second
Array Key Access: 1504844 array elements accessed by key per second
Basic FP: 2759838 basic FP operations per second
Complex FP: 1530908 complex FP operations per second
Nested Loops (FP): 814283 nested loops per second
Nested Loops (Int): 807857 nested loops per second
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 6
model name : AMD Athlon(tm) XP 1700+
stepping : 2
cpu MHz : 1463.275
cache size : 256 KB
bogomips : 2916.35
Andrey