Java 6在JDK,JVM或两者中的性能是否提高? [英] Are Java 6's performance improvements in the JDK, JVM, or both?

查看:154
本文介绍了Java 6在JDK,JVM或两者中的性能是否提高?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直想知道Java SE 6中的性能改进 - 是在编译器还是运行时?换句话说,JDK 6编译的Java 5应用程序是否会在JSE 5下看到改进运行(表明改进的编译器优化)?将JDK 5编译的Java 5应用程序看到改进运行JSE 6(表示改进的运行时优化)?



我注意到,JDK 6下编译几乎两次只要它在JDK 5下为完全相同的代码基础;我希望至少有一些额外的时间花在编译器优化,希望导致更高性能的JAR和WAR。 Sun的JDK信息并没有详细说明他们所做的性能改进 - 我认为A列有一点,B列有一点,但我不知道哪个更大的影响。有没有人知道在JDK 6和JDK 5上做任何基准?

解决方案我还没有听说过编译器的改进,但已发布了关于运行时性能改进的大量信息。



迁移指南



[ http://java.sun.com/javase/ 6 / webnotes / adoption / adoptionguide.html]



效能白皮书



[ http://java.sun.com/performance/ reference / whitepapers / 6_performance.html]


I've been wondering about the performance improvements touted in Java SE 6 - is it in the compiler or the runtime? Put another way, would a Java 5 application compiled by JDK 6 see an improvement run under JSE 5 (indicating improved compiler optimization)? Would a Java 5 application compiled by JDK 5 see an improvement run under JSE 6 (indicating improved runtime optimization)?

I've noticed that compiling under JDK 6 takes almost twice as long as it did under JDK 5 for the exact same codebase; I'm hoping that at least some of that extra time is being spent on compiler optimizations, hopefully leading to more performant JARs and WARs. Sun's JDK info doesn't really go into detail on the performance improvements they've made - I assume it's a little from column A, and a little from column B, but I wonder which is the greater influence. Does anyone know of any benchmarks done on JDK 6 vs. JDK 5?

解决方案

I have not heard about improvements in the compiler, but extensive information has been published on the runtime performance improvements.

Migration guide:

[http://java.sun.com/javase/6/webnotes/adoption/adoptionguide.html]

Performance whitepaper:

[http://java.sun.com/performance/reference/whitepapers/6_performance.html]

这篇关于Java 6在JDK,JVM或两者中的性能是否提高?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆