summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2015-05-07 11:31:28 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2015-05-07 11:47:23 +0530
commit7ea649ca8e5fef748b6c2c48d298d82cd57b7a8c (patch)
tree424dadd2e67beb1265d0acec1099b1435713e613
parentb9df7564cbcc2712f93efaf29eba3417649d5c85 (diff)
downloadglibc-siddhesh/benchmarks.tar.gz
Fix up timing_type key and remove the machine keysiddhesh/benchmarks
-rwxr-xr-xbenchtests/scripts/compare_bench.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/benchtests/scripts/compare_bench.py b/benchtests/scripts/compare_bench.py
index 45840ffdb0..1aa2ee171a 100755
--- a/benchtests/scripts/compare_bench.py
+++ b/benchtests/scripts/compare_bench.py
@@ -54,21 +54,10 @@ def do_compare(func, var, tl1, tl2, par, threshold):
def compare_runs(pts1, pts2, threshold):
"""Compare two benchmark runs
- For now, assume that machine1 and machine2 are the same. In future, we may
- have to add an additional condition to ensure that we are comparing apples
- to apples.
-
Args:
- machine1: Machine info from the first machine
- machine2: machine info from the second machine
pts1: Timing data from first machine
pts2: Timing data from second machine
"""
- # Just print the machines for now. We would want to do something more
- # interesting with this in future.
- print 'Machine 1:', pts1['machine']
- print 'Machine 2:', pts2['machine']
- print
# XXX We assume that the two benchmarks have identical functions and
# variants. We cannot compare two benchmarks that may have different
@@ -179,7 +168,7 @@ def main(args):
else:
threshold = 10.0
- if (bench1['timing-type'] != bench2['timing-type']):
+ if (bench1['timing_type'] != bench2['timing_type']):
print('Cannot compare benchmark outputs: timing types are different')
return