Php 5.4 vs 5.3: is really fast and with less memory leaks
news.php.net
news.php.net
Just because something uses a lot of memory doesn't mean it's leaking memory. Only when that used memory never gets freed or reused you can talk of leaks.
The linked benchmark isn't taking this into account /at all/. It's just measuring memory usage.
From my own experience with PHP, while it's using a lot of memory at times, it doesn't usually leak it, unless you produce code that cause it to leak (circular references before the GC days), but that's really the programmers responsibility.
With PHP 5.3 with the new GC and the latest version of HTML Purifier, there is no memory leak anymore. PHP has come a long way since the days when you had to respawn Apache processes every 500 requests.
Ah it is indeed an opcode cache, just wasn't familiar with it as a commercial product
http://files.zend.com/help/Zend-Server-IBMi/optimizer_plus_c...
Good to see the performance boost is maintained with an opcode cache and not negated.
I mean, that's supposed to be the native Opcode Cache with PHP!
My WAMP distro (http://www.devside.net/server/webdeveloper) is switching to it, as it's finally stable enough to use in production (eAccelerator had it beat for some time).
Also, Zend Optimizer only works with PHP as a non-thread-safe / FCGI process in PHP 5.3, so there goes it's use under the prefered Windows mod_php setup (Windows handles threads really well). The only time you want to use FCGI on Windows is if there are serious memory leaks.
It's hard to ignore Windows as a PHP paltform considering it's the majority of the webdev segment for PHP and about 1/3 of production for PHP.
Since Dmitry Stogov (the benchmark poster) invented Turck MMCache and was hired away by Zend, it makes sense he is benchmarking with zend ;-)
The majority of dev work (like local website development and testing) with Apache, PHP, and MYSQL was under Windows. 1/3 of production work was also Windows. This was several years ago and I have seen these numbers increasing in Windows favor.
<b>Although PHP is universally thought of as implying Linux, Apache and MySQL, nearly 7% of PHP sites [when counting by ip address] run on Windows. This has doubled over the last year</b> (from Netcraft: http://news.netcraft.com/archives/2003/08/30/php_growing_sur... ).
PHP on Windows grew much more later on, what with Microsoft even making several specific changes to IIS et all to accommodate it better.
// less is for general mass, fewer is for countable nouns; == is for general comparison, === is for comparable things of the same type
How about both? People have no hesitation about correcting a person's programming syntax, and are usually thanked. Why not apply the same rules to English syntax? Both are important to one's effectiveness.
The JVM is slower to develop for, and when probably 50% of projects on the web are stuff that's built in less than 2 months, using the JVM adds too much complexity where it really isn't needed.
If you want speed (almost) as good as the JVM without using an interpreted language, use Node. Unless of course you only know the one language from your CompSci days..
Source? That's not what the Programming Language Benchmark Game says...
http://shootout.alioth.debian.org/u64/which-programming-lang...
Although that's probably without an optimiser at all.
I can't find the reference I remember but it fits roughly with the link posted (the scale seems to match the max times rather the average times). The differences were tiny but the order was PHP, Python, Ruby if I remember correctly (PHP was in front, PR may have been switched).
I'll try get a link but I doubt i'll find it.
PyPy is at least as fast as Node, and Rubinius is also very fast.