News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Volker Dusch's Blog:
Never trust other peoples benchmarks - A recent example (exceptions)
January 19, 2012 @ 09:20:32

In response to a previous post benchmarking exceptions, Volker Dusch has posted some of his own thoughts and benchmarking results on the same topic.

Some days ago there was a blog post regarding php exception performance in 5.4 and the numbers got reported all over the place. The actually numbers are secondary. The main point is: Don't trust "random" stuff on the Internet when thinking about improving your application performance. You always need to measure things for your self and take care doing so! I've initially trusted the benchmark myself and disgraced the whole post saying: "Well yes, exceptions are slower than if statements but nice that they got faster".

He includes some results with a bit more standardized testing - one run with both 5.3 and 5.4 using XDebug and another with it turned off for both. His results make sense, if you think about them:

So what we learn from that? Running stuff with debugging tools is slower than not doing that. That's why we don't use xDebug in production.
0 comments voice your opinion now!
benchmark rebuttal xdebug trust exception speed memory


blog comments powered by Disqus

Similar Posts

DZone.com: What you must know about PHP errors...

Sebastian Bergmann\'s Blog: PHP 5.1 / GCC Benchmark (Update)

Alvaro Videla's Blog: Erlang as a Fast Key Value Store for PHP

WebDevLogs.com: BREAK the FOR VS WHILE loop war

WebDevLogs.com: Which way to get the PHP self script name is the fastest?


Community Events











Don't see your event here?
Let us know!


symfony2 language release facebook introduction security opinion component framework application example install composer hhvm package unittest podcast hack overview code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework