准系统 JVM 环境
需要设置一个准系统环境来在运行时以尽可能少的环境外部系统开销对代码进行基准测试,以获得尽可能稳定的报告。最好的方法是什么?
Need to setup a barebones environment to benchmark code with as little enviromental external system overhead as possible at runtime to get as stable reports overtime as possible. What is the best way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题不清楚,因为有很多变量您可能感兴趣,也可能不感兴趣。
一种可能是安装全新的 Windows 或 Linux 系统(如果这些操作系统中的任何一个是相关的,或者至少不会损害您的目标) ,仅安装 JRE 和基准测试软件,断开互联网连接,然后运行测试。
如果你想在其他系统上使用 JVM,或者你觉得官方的 JRE 太麻烦,会影响你的结果,你非常希望查看 http://oss.readytalk.com/avian/ —— 一个相对容易移植到多个任意系统的 JVM。当然还有其他类似的便携式替代品。
Your question is not clear because there are many variables which you may or may not be interested in.
One possibility is to install a brand new Windows or Linux system (if either of those OS's is relevant, or at least not detrimental to your goal), install only the JRE and your benchmark software, disconnect from the internet, and run your tests.
If you're looking to use a JVM on other systems, or you feel the official JRE is too cumbersome and will affect your results, you much wish to check out http://oss.readytalk.com/avian/ -- a JVM which is relatively easy to port to several arbitrary systems. Of course there are other similar portable alternatives.