News Feed
Sections




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

Lorna Mitchell's Blog:
Proof that PHP 5.4 is Twice as Fast as PHP 5.3
June 14, 2012 @ 10:04:55

In this quick post to her blog, Lorna Mitchell shares an interesting bit of benchmarking she did between PHP versions 5.3 and 5.4, finding 5.4 twice as fast as it's previous version sibling.

So recently I was working on some benchmarks for different versions of PHP, because I heard that PHP 5.4 is "faster" and since I'm a data geek I want to know how much faster! Now, PHP 5.4 is, in general, faster than PHP 5.3 but not twice as fast* unless you pick a use case which has been particularly optimised. My first attempt at benchmarking the two versions produced this. This was a surprise to me; was PHP 5.4 really so much faster??

Her benchmark was a pretty simple one - looping and creating a new object, evaluating the timing of how long it took to execute. A commentor also points to some more official benchmarks that were done and posted to the php.internals mailing list.

0 comments voice your opinion now!
speed version difference improvement create object benchmark


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso's Blog: Building a simple SQL wrapper with PHP. Part 2.

Test.ical.ly Blog: PHP 5.4 with traits, Doctrine 2.2 and then Symfony3?

Eran Galperin's Blog: OO PHP Templating

DotVoid.com: PHP streams and http 1.1 gotcha

Builder.com.au: Get the correct time by converting between time zones with PHP and PEAR


Community Events





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


opinion community library package update list install deployment release zendserver series symfony podcast tips language interview introduction laravel api framework

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