From 10d8dad6941b1aaa952b86a4a88cc6c67057ee14 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 7 Aug 2015 21:15:18 +0300 Subject: More fixes for getting reference times from spec --- obbench | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'obbench') diff --git a/obbench b/obbench index a801d61..78d3830 100755 --- a/obbench +++ b/obbench @@ -320,7 +320,12 @@ class ObnamBenchmarker(cliapp.Application): commit=self.q(run['commit_id']), name=self.q(name)) duration = '%.1f' % run['durations'][name] - reference = '%.0f' % run['references'][name] + + reference = sum( + sum(x.get('reference', 0) for x in b['steps']) + for b in spec['benchmarks'] + if b['name'] == name) + f.write( '' '{duration} ' @@ -366,11 +371,9 @@ class ObnamBenchmarker(cliapp.Application): 'commit_id': obj['commit_id'], 'commit_msg': obj['commit_msg'], 'durations': { obj['name']: total(obj, 'duration') }, - 'references': { obj['name']: total(obj, 'reference') }, }) else: runs[-1]['durations'][obj['name']] = total(obj, 'duration') - runs[-1]['references'][obj['name']] = total(obj, 'reference') return runs -- cgit v1.2.1