aboutsummaryrefslogtreecommitdiff
path: root/crosperf/benchmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'crosperf/benchmark.py')
-rw-r--r--crosperf/benchmark.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/crosperf/benchmark.py b/crosperf/benchmark.py
new file mode 100644
index 00000000..fa12d934
--- /dev/null
+++ b/crosperf/benchmark.py
@@ -0,0 +1,24 @@
+#!/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, profile_counters, profile_type):
+ self.name = name
+ self.autotest_name = autotest_name
+ self.autotest_args = autotest_args
+ self.iterations = iterations
+ self.outlier_range = outlier_range
+ self.profile_counters = profile_counters
+ self.profile_type = profile_type