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/
Sebastian Bergmann wrote:
http://www.sebastian-bergmann.de/PHP_Benchmark/
Any comments, feedback, corrections and additions are welcome,
You've done a good job but we basically only see two things:
a) PHP4 is an order of a magniture faster than PHP3.
b) PHP5 is about the same speed as PHP4.
No big surprises there, let's move on...
Regards,
- Chris
Sebastian Bergmann wrote:
http://www.sebastian-bergmann.de/PHP_Benchmark/
Any comments, feedback, corrections and additions are welcome,
You've done a good job but we basically only see two things:
a) PHP4 is an order of a magniture faster than PHP3.
b) PHP5 is about the same speed as PHP4.No big surprises there, let's move on...
I think you miss the point. Comprehesive benchmarks are nice so that
you can evaluate the effects of and prevent performance accidents often
associated withnew changes. It's not groundbreaking stuff, but it's
very beneficial to have and to run often.
George
George Schlossnagle wrote:
I think you miss the point. Comprehesive benchmarks are nice so that
you can evaluate the effects of and prevent performance accidents often
associated withnew changes. It's not groundbreaking stuff, but it's
I'm just not convinced that these little microbenchmarks are very helpful.
To achieve your goal I suggest someone builds benchmarking into the
regression tests, i.e. 'make benchmark-tests' or the like, outputting a
machine readable format. It would then be possible to automatically
compare two versions on a much wider range, allow graphing, alerts if
something is much slower etc. Now that sounds interesting for QA.
- Chris
To achieve your goal I suggest someone builds benchmarking into the
regression tests, i.e. 'make benchmark-tests' or the like, outputting
a machine readable format. It would then be possible to automatically
compare two versions on a much wider range, allow graphing, alerts if
something is much slower etc. Now that sounds interesting for QA.
That sounds like good feedback to me. :)
George