5 ms·
http://www.techempower.com/benchmarks/#section=data-r7&hw=i7&test=query&f=rpfnk-35t-bxu8 http://www.techempower.com/benchmarks/#section=data-r7&hw=i7... If you
by neya 13y ago
http://www.techempower.com/benchmarks/#section=data-r7&hw=i7&test=query&f=rpfnk-35t-bxu8 http://www.techempower.com/benchmarks/#section=data-r7&hw=i7...
If you notice the specific filters I've set, PHP actually outperforms Go for many cases. That's actually nice to see (PHP gets better with each release version). Well, if there was something like Coffeescript, but for PHP, then there's no better time than now to make it.
I really love the simplicity of Ruby, the performance of Golang/JVM and the massive popularity of PHP and it's compatibility with budget hardware (Shared hosting, etc). If there was a "Write your code in Ruby and we'll compile it to PHP" kind of generator/converter/service, that would be so awesome :D
(If anyone knows something like that that already exists, then I would be extremely thankful).
- iends 13y agoThis is interesting, but why is there such a huge gap between raw php, and most of the php frameworks? The one PHP framework that seems to do well is yaf. However, Yaf is actually written in C and is a php extension. I would expect it to do better than all the php frameworks, but that doesn't account for the huge gap between raw php and the other frameworks.
- plorkyeran 13y agoAssuming that the PHP frameworks are not just all terribly written (which seems unlikely), what this shows us is that the PHP interpreter is very slow, but the libraries that PHP uses are fast. The raw PHP benchmark doesn't actually have very much PHP code, so the slowness of the interpreter doesn't matter much, while the PHP frameworks (other than Yaf) all have a great deal of PHP code.
- neya 13y agoYeah, me neither, I don't understand why the huge gap. Would be interesting to see some technical background on this, though.
- deleted 13y ago[deleted]
- martinml 13y agohaxe might be similar to what you're asking for?
- neya 13y agoWow, thanks a lot Martin, Haxe looks very very promising :)