为什么我的 Java 应用程序在 AMD 处理器上速度更快?
我观察到,与 Intel CPU 相比,在 AMD 处理器上执行时我的 java 应用程序运行速度快得多。
例如,我的 JBoss 在 3 GHz AMD 处理器上启动大约需要 30 秒,而在具有相同磁盘、RAM 和操作系统的 3 GHz Intel 处理器上需要大约 60 秒?
还有其他人做过这样的观察吗?为什么会这样呢?
I made the observation that my java application is running much faster when executed on an AMD processor in contrast to an Intel CPU.
For example my JBoss starts in about 30 seconds on a 3 GHz AMD processor and needs about 60 seconds on a 3 GHz Intel processor with identical disc, RAM and OS?
Has anyone else made this observation? Why is this so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这也取决于 CPU 的代数 - 时钟速度并不代表一切。
例如,如果您设置具有相同时钟速度的 Intel Pentium 4 和 AMD Phenom,您会发现 Phenom 有很大差异。
更新:如果您真的很好奇,请使用分析器并发布结果。
It depends on the CPU generation as well - clock speed is not everything.
If you set up e.g. an Intel Pentium 4 and an AMD Phenom with the same clock speed, you'll see a large difference in favour of the Phenom.
Update: If you're really curious, use a profiler and post the results.
其他考虑因素:
底线:除非您的配置除芯片外相同,并且您正在尝试为了评估特定技术的性能,您实际上是在将苹果与橙子进行比较。
Other considerations:
Bottom line: Unless your configurations are identical besides the chips, and you are trying to asses the performance of a particular technology, you're really comparing apples to oranges.
它们都运行相同的架构吗?或者AMD运行的是64位操作系统?
请记住,启动时间并不代表一切。如果应用程序在启动后运行得同样快,那么 60 秒的启动时间可能并不算太糟糕。
Are they both running the same architecture? Or is the AMD running a 64-bit OS?
Remember that startup time isn't everything; a 60s startup time probably isn't that bad if the application runs as fast AFTER it's started up.
我发现在同一处理器上 64 位 JDK 的运行速度比 32 位 JDK 快得多。所以也许情况就是这样。
编辑:http://java.sun.com/docs/hotspot/HotSpotFAQ。 html#64bit_performance。抱歉,我想我错了。
I've seen 64-bit JDK work much faster than 32-bit one on the same processor. So maybe that's the case.
EDIT: http://java.sun.com/docs/hotspot/HotSpotFAQ.html#64bit_performance. Sorry, I guess I'm wrong.