gpt4 book ai didi

Java 字节码编译器基准测试

转载 作者:搜寻专家 更新时间:2023-11-01 01:58:15 24 4
gpt4 key购买 nike

Q.1.哪种免费编译器可以生成最佳的 Java 字节码?

Q.2.什么免费虚拟机执行 Java 字节码最快(在 64 位多核 CPU 上)?

Q.3.此列表中缺少哪些其他(当前活跃的)编译器项目:

Q.4.哪些 JIT 不能(或不能)编译器可以提高性能?

Q.5.最近的一些基准、比较或对比(Q1 或 Q2)在哪里?

谢谢!

最佳答案

Q.1. What free compiler produces the fastest executable Java bytecode?

问题真的没有意义。不执行字节码。使用良好的 JIT 时,编译后的字节码差异不会大到影响生成的机器代码的效率。

Q.2. What free virtual machine executes Java bytecode the fastest (on 64-bit multi-core CPUs)?

这是一个更好的问题。我相信是 JRockit

Q.3. What other (currently active) compiler projects are missing from this list:

我相信您错过了 JRockit。但要获得更完整的列表,我会查看 Wikipedia: List of Java Virtual Machines .查看它们是否处于 Activity 状态应该是一项简单的任务。

Q.4. What performance improvements can compilers do that JITs cannot (or do not)?

我想从技术上讲没有。在优化方面,字节码编译基本上是错误的地方。

Q.5. Where are some recent benchmarks, comparisons, or shoot-outs (for Q1 or Q2)?

Google 是您的 friend 。这是两个:

不幸的是,这些并没有涵盖那么多虚拟机。

关于Java 字节码编译器基准测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3027821/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com