为什么我的 Java 应用程序在 AMD 处理器上速度更快?

发布于 2024-08-07 21:03:45 字数 203 浏览 6 评论 0原文

我观察到,与 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

你又不是我 2024-08-14 21:03:45

这也取决于 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.

哭泣的笑容 2024-08-14 21:03:45

其他考虑因素:

  • 处理器板载缓存的大小
  • 主板的总线速​​度
  • 硬盘驱动器的缓存大小
  • 硬盘驱动器 RPM 和读取速度

底线:除非您的配置除芯片外相同,并且您正在尝试为了评估特定技术的性能,您实际上是在将苹果与橙子进行比较。

Other considerations:

  • Size of processor on-board cache
  • Bus speed of your motherboard
  • Cache size of your hard drive
  • Hard drive RPM and read speed

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.

生活了然无味 2024-08-14 21:03:45

它们都运行相同的架构吗?或者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.

嗳卜坏 2024-08-14 21:03:45

我发现在同一处理器上 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文