Java:宏观基准测试和微观基准测试之间的差异
我正在阅读有关基准的内容并遇到这些术语。我不清楚它们的确切含义。根据我的理解,微基准测试是对应用程序的一个非常小的功能进行基准测试。在Java编程中,一个例子是HashMap的表现。 宏观基准更多地是基于客户需求的应用程序级别。 按照我的示例,宏基准测试将是对缓存应用程序进行基准测试。
任何人都可以对此进行更多说明并验证我所理解的是否正确?
I was reading about benchmarks and came across these terms. I'm not clear as to their exact meaning. From my understanding, a micro-benchmark, benchmarks a very small functionality of the app. In Java programming, an example would be a performance of HashMap.
Macro benchmarks are more on an application level, based on what customer requirements are.
Following my example, a Macro benchmark would be to benchmark an Caching application.
Can anyone shed more light on this and verify whether what I have understood is right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的解释几乎涵盖了它:
Summary 由 Rachasatish 提供,摘自他的 博客1
这又取自以下书籍章节2:
1 这是一篇关于“Java 性能调优技巧”的详尽博客文章(即包含每个主题摘要的长列表)
2 这是原始文章的位置链接似乎指向
Your explanation just about covers it:
Summery provided by Rachasatish and taken from his blog1
This again is taken from the following book chapter2:
1 which is quite an exhaustive blog article (i.e. a long list with a summary of every topic) about "Java performance tuning tips"
2 which is where the original link seemed to be pointing to