aboutsummaryrefslogtreecommitdiff
path: root/crosperf/benchmark.py
blob: 8fe8a49220cb9da2a0d12175b7733055c2b557f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python

# Copyright 2011 Google Inc. All Rights Reserved.


class Benchmark(object):
  """Class representing a benchmark to be run.

  Contains details of the autotest, arguments to pass to the autotest,
  iterations to run the autotest and so on. Note that the benchmark name
  can be different to the autotest name. For example, you may want to have
  two different benchmarks which run the same autotest with different
  arguments.
  """

  def __init__(self, name, autotest_name, autotest_args, iterations,
               outlier_range, key_results_only, rm_chroot_tmp, perf_args):
    self.name = name
    self.autotest_name = autotest_name
    self.autotest_args = autotest_args
    self.iterations = iterations
    self.outlier_range = outlier_range
    self.perf_args = perf_args
    self.key_results_only = key_results_only
    self.rm_chroot_tmp = rm_chroot_tmp
    self.iteration_adjusted = False