LLVM的JIT性能
任何人都可以提供一些数据来显示 llvm 的 JIT 代码输出的性能,例如与使用 -O3 的静态编译相比?最好通过规格基准来说明这种性能。人们说 JIT 输出的代码很慢。我只是好奇它有多慢。
Can anybody provide some data showing the performance of code output by llvm's JIT, say compared to static compilation with -O3? It is better that such performance is illustrated by spec benchmark. People say code output by JIT is slow. I am just curious how slow it is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
阅读此演示文稿,它涵盖了 JIT 生成代码的基准测试(例如不幸的是,大多数基准测试都针对具有新 JIT 后端的现有语言,例如 Rubinius)。还有一些有趣的图表这里。
作为额外的奖励,此处介绍了如何使用 LLVM 构建高效的 JIT Clang 涵盖了 JITing 过程的内存使用情况和速度基准,如果您决定创建自己的基准,这可能会影响生成代码的速度和质量。
但是,您可能会发现这个问题也很有趣。
Give this presentation a read, it covers benchmarks of the JIT generated code (for a JVM & .Net though, unfortunately, most benchmarks will for existing languages with a new JIT backend, such as Rubinius). There are also a few interesting graphs here.
As an added bonus, here is a presentation on building an efficient JIT with LLVM and Clang that covers memory usage and speed benchmarks of the JITing process, which can affect the speed and quality of generated code, if you do decide to create your own benchmarks.
However, you might find this question interesting as well.