3 ms·
From the report at https://abertschi.ch/default_public/ethz/graalphp/download.php https://abertschi.ch/default_public/ethz/graalphp/download.p...: "Experimental
by mrigger 6y ago
From the report at https://abertschi.ch/default_public/ethz/graalphp/download.php https://abertschi.ch/default_public/ethz/graalphp/download.p...: "Experimental results indicate that our runtime reaches competitive results with performance gains of up to 859% compared to PHP 7. These preliminary results suggest that a Truffle-hosted PHP implementation might be significantly faster than existing language implementations."
- dvh 6y agoNot implemented features: classes, namespaces, exceptions
- tluyben2 6y agoSo it will work for really old(-style) php then. I still see new software coming out (and being sold) written in that style: no frameworks, classes or exceptions. Not relevant for this implementation, but many (popular) commercial wp plugins are still written like that; installed one for a client a few days ago and it was a dense mix of code and html without classes, exceptions or namespaces. And that is a popular, new, commercial one.
- fogihujy 6y agoThat's pretty common within the WordPress community, yeah, and it doesn't have to be ugly if the coders knew what they were doing. A lot of it is a mess, though.
- tluyben2 6y agoAlso commercial standalone scripts as I see; I think many are 15+ years old originally and are just updated with better fronts and some new features but all the logic is just the same hacking.
- continuations 6y agoPHP is implemented in C, right? What makes a PHP version implemented in a JVM 9x faster than PHP implemented in C?
- phplovesong 6y agoMostly because PHP is implemented very poorly. Its used to be really slow (its a little bit better now with newer versions) and it always amazed me, because of its basically a thin wrapper on C. I guess PHPs core types are very inefficient and the team behind PHP lacks time to really do a rewrite. A prime example is the PHP "array". Its not a list, its not an array, but more of a weird object thing. PHP is full of these weird things that are probably hard to optimize (in the PHP runtime)
- maxk42 6y agoI'll point out that in the latest Techempower Benchmarks[1] PHP makes up 20% of the fastest 25 frameworks. It also makes two appearances before the first Java framework. PHP might not be suited to every application, but it's certainly not slow. [1] https://www.techempower.com/benchmarks/ https://www.techempower.com/benchmarks/
- ldeangelis 6y agoI have to point out that what you say applies only on the "Fortunes" benchmark. On the others benchmarks, Java always comes before PHP. I'll also add that most people don't use the top performing frameworks (most people use Laravel and Symfony for PHP, which are near the bottom), but that applies to everything here. [edit]: clarification
- emteycz 6y agoHuh? Nearly every PHP job is Laravel or Symfony nowadays, at least in Europe.
- 6y ago