PHP 在 JVM 上真的更快吗?
最近我听到很多人都在宣扬 PHP 使用 Resin 实际上比使用 mod_php 快得多,但我在任何地方都找不到任何基准。
这是真的还是只是供应商的BS?
Lately I've been hearing a lot of people evangelizing that PHP with Resin is actually much faster than with mod_php, but I cannot find any benchmark anywhere.
Is it true or just vendor BS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
InfoQ 有 这段视频演示,来自 2008 年 JVM 语言峰会,主题是“P8,一个涵盖的主题包括将 PHP 引入 JVM 的原因、PHP 和 P8 概述……”
据我所知,性能是峰会上讨论最多的一个话题,但是我还没有时间看完这个演示。 然而,我毫不犹豫地相信,将 PHP 源代码编译成 JVM 字节码,然后在热点 JVM 上运行将优于纯粹基于解释的实现。
InfoQ has this video presentation from the 2008 JVM Language Summit on "P8, an implementation of PHP on the JVM. Topics covered include the reasons for bringing PHP to the JVM, an overview of PHP and P8 ..."
From what I've heard so far, performance was a topic of much discussion at the Summit, but I haven't had time to get through this presentation yet. However, I don't have any trouble believing that PHP source compiled into JVM bytecode and then run on a hot-spotting JVM would outperform a pure interpretation-based implementation.