Exemplo n.º 1
0
def GetDefaultChromiumConfig():
    return ChromiumConfig(benchmark_dirs=[
        path_util.GetOfficialBenchmarksDir(),
        path_util.GetContribDir()
    ],
                          top_level_dir=path_util.GetPerfDir(),
                          expectations_files=[path_util.GetExpectationsPath()])
Exemplo n.º 2
0
def main():
    config = chromium_config.ChromiumConfig(
        benchmark_dirs=[
            path_util.GetOfficialBenchmarksDir(),
            path_util.GetContribDir()
        ],
        top_level_dir=path_util.GetPerfDir(),
        expectations_files=[path_util.GetExpectationsPath()])
    return benchmark_runner.main(config)
Exemplo n.º 3
0
def _GetAllSystemHealthBenchmarks():
    all_perf_benchmarks = discover.DiscoverClasses(
        path_util.GetOfficialBenchmarksDir(),
        path_util.GetPerfDir(),
        benchmark_module.Benchmark,
        index_by_class_name=True).values()
    return [
        b for b in all_perf_benchmarks
        if sys.modules[b.__module__] == system_health_benchmark
    ]
Exemplo n.º 4
0
def GetOfficialBenchmarks():
  """Returns the list of all benchmarks to be run on perf waterfall.
  The benchmarks are sorted by order of their names.
  """
  benchmarks = discover.DiscoverClasses(
      start_dir=path_util.GetOfficialBenchmarksDir(),
      top_level_dir=path_util.GetPerfDir(),
      base_class=benchmark_module.Benchmark,
      index_by_class_name=True).values()
  benchmarks.sort(key=lambda b: b.Name())
  return benchmarks
Exemplo n.º 5
0
def _GetAllPerfBenchmarks():
    return list(
        discover.DiscoverClasses(path_util.GetOfficialBenchmarksDir(),
                                 path_util.GetPerfDir(),
                                 benchmark_module.Benchmark,
                                 index_by_class_name=True).values())