3 ms·
JPHP can be faster PHP7: http://d.hatena.ne.jp/hnw/20150117 http://d.hatena.ne.jp/hnw/20150117, also each version of the java virtual machine becomes faster tha
by dim-s 12y ago
JPHP can be faster PHP7: http://d.hatena.ne.jp/hnw/20150117 http://d.hatena.ne.jp/hnw/20150117, also each version of the java virtual machine becomes faster than the previous 10-30% so and JPHP becomes faster. Thanks to Oracle and OpenJDK community.
- TazeTSchnitzel 12y agoBeing faster than PHP 7 for a few functions from bench.php isn't very convincing.
- dim-s 12y agoI have not tested the speed of JPHP on more complex tests. I only tried to test JPHP as a simple web server (via Apache Benchmark) that contains like "echo Hello World" and a few classes, the result was excellent, faster the Phalcon framework, about 3000 req/s. The results of this testing will publish later.
- mgkimsal 12y agoThe other area where JPHP could come in handy is large scale hosting of multi-tenant services - wordpress, magento, etc. If you can run that code well, and at a significant speed improvement to show savings at scale, there's something to be had there, but again, with PHP7 coming out, I think it'll be hard to get as much of a speed benefit as you'd need to make it marketable. But maybe that's not your purpose anyway. If it sounds like I've been bashing you or the project, apologies; it's a neat idea - I like to see hacker projects like this, just not sure where it'll go long term.
- mgkimsal 12y agoI'm not saying it's not faster - I'd expect some (maybe many) JVM scenarios to be faster than PHP. But "PHP is slow" is just not a real world problem for most use cases of PHP in web applications. Running your business 15-20% faster will not be enough of a compelling argument for people to switch to an entirely new toolchain and way of thinking. I give you Ruby and JRuby as one major example. Using JPHP as a way to get PHP running on Android, if it's seamless and strong experience, would be something to focus more efforts on, imo. Every single successive version of the JVM being 30% faster is simply not born out in the real world across the board. I ported JVM web apps from JDK 6 -> 7 -> 8, and didn't see anywhere near those performance increases. Does the JVM improve with each iteration? Sure. So does PHP, and PHP7 is going to be a huge across the board improvement, but I doubt we'll see this sort of doubling of performance from a single release any time soon after PHP7 release.
- thawkins 12y agoPHP already runs on android, there at least half a dozen PHP runtimes in the play store. Its just standard PHP recompiled to run on ARM.