MCPcopy Create free account
hub / github.com/apache/arrow / suite

Method suite

dev/archery/archery/benchmark/runner.py:290–306  ·  view source on GitHub ↗

Returns the resulting benchmarks for a given suite.

(self, name)

Source from the content-addressed store, hash-verified

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):

Callers 1

suitesMethod · 0.95

Calls 6

list_benchmarksMethod · 0.95
resultsMethod · 0.95
BenchmarkSuiteClass · 0.85
buildMethod · 0.45
from_jsonMethod · 0.45

Tested by

no test coverage detected