benchmark.py revision 0dcbc4b1714260820fd4b8d6536fbb05e139cc0f
1#!/usr/bin/python
2
3# Copyright 2011 Google Inc. All Rights Reserved.
4
5
6class Benchmark(object):
7  """Class representing a benchmark to be run.
8
9  Contains details of the autotest, arguments to pass to the autotest,
10  iterations to run the autotest and so on. Note that the benchmark name
11  can be different to the autotest name. For example, you may want to have
12  two different benchmarks which run the same autotest with different
13  arguments.
14  """
15
16  def __init__(self, name, autotest_name, autotest_args, iterations,
17               outlier_range, profile_counters, profile_type):
18    self.name = name
19    self.autotest_name = autotest_name
20    self.autotest_args = autotest_args
21    self.iterations = iterations
22    self.outlier_range = outlier_range
23    self.profile_counters = profile_counters
24    self.profile_type = profile_type
25