如何运行Guava的基准套件? [英] How do I run Guava's benchmark suite?

查看:108
本文介绍了如何运行Guava的基准套件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

番石榴有一个guava-tests子目录,其中包含一个名为benchmark的目录子树.看来,执行mvn test(或mvn install)可以在test子树中运行完整的单元测试套件,但是在基准套件中什么也没有运行.

Guava has a guava-tests subdirectory that contains a directory subtree called benchmark. It appears that executing mvn test (or mvn install) runs the full suite of unit tests in the test subtree, but nothing is run in the benchmarks suite.

我的问题是:您实际上如何运行基准套件?换句话说,如果我从git下载番石榴源(例如在Linux环境中),我需要采取哪些步骤?去构建番石榴并在本地运行其基准套件?

My question is: how do you actually run the benchmark suite? In other words, if I download the guava source from git (say, in a Linux environment), what are the steps I need to take to build guava and run its benchmark suite locally?

令人惊讶的是,有关此在线信息很少.我偶然发现了这个旧的 Google网上论坛帖子,以及关于为此添加文档的 git问题,但是我没有发现更多的东西. >

There is surprisingly little information about this online. I stumbled across this old Google groups post, as well as a git issue about adding documentation for this, but I haven't found much else.

推荐答案

基于 comment 似乎无法(轻松地)运行基准测试,因为它们甚至不能在外部编译.目前,它们已被有效发布,仅供参考.显然,番石榴团队打算让外部用户运行基准测试,但尚未完成.对该错误进行评论,特别是如果您包含用例信息(例如,不仅仅包括"+1"),可能会帮助他们优先考虑完成此操作.

Based on the comment by cgdecker it seems you cannot (easily) run the benchmarks since they don't even compile externally. For now they're effectively released simply for reference. Clearly the Guava team intends to let external users run the benchmarks, but it hasn't been done yet. Commenting on the bug, especially if you include use-case information (i.e. say more than just "+1"), would presumably help them prioritize getting this done.

这篇关于如何运行Guava的基准套件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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