How do I run Guava's benchmark suite?
Asked Answered
C

1

5

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.

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?

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.

Complicated answered 3/5, 2016 at 5:12 Comment(0)
B
0

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.

Biparietal answered 1/8, 2016 at 3:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.