Returns the resulting benchmarks for a given suite.
(self, name)
| 288 | return JavaConfiguration(**kwargs) |
| 289 | |
| 290 | def suite(self, name): |
| 291 | """ Returns the resulting benchmarks for a given suite. """ |
| 292 | # update .m2 directory, which installs target jars |
| 293 | self.build.build() |
| 294 | |
| 295 | suite_cmd = JavaMicrobenchmarkHarnessCommand( |
| 296 | self.build, self.benchmark_filter) |
| 297 | |
| 298 | # Ensure there will be data |
| 299 | benchmark_names = suite_cmd.list_benchmarks() |
| 300 | if not benchmark_names: |
| 301 | return None |
| 302 | |
| 303 | # TODO: support `repetition_min_time` |
| 304 | results = suite_cmd.results(repetitions=self.repetitions) |
| 305 | benchmarks = JavaMicrobenchmarkHarness.from_json(results) |
| 306 | return BenchmarkSuite(name, benchmarks) |
| 307 | |
| 308 | @property |
| 309 | def list_benchmarks(self): |
no test coverage detected