summaryrefslogtreecommitdiff
path: root/stats
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2015-07-27 13:49:34 +0300
committerMartin Peres <martin.peres@linux.intel.com>2015-07-27 13:49:34 +0300
commit71e1a4df576011f022aad5a53b3f684c877db89f (patch)
treefa50bf5b6ec5a0f1997dde35663cc5053036c198 /stats
parentb1ec32cd7f7ae3b493c5a9290e1eaf70b85356a6 (diff)
stats/gen_report: fix the overview graph
The difference value got computed in the stupidest way!
Diffstat (limited to 'stats')
-rwxr-xr-xstats/gen_report.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/stats/gen_report.py b/stats/gen_report.py
index ec58ce8..190b3fe 100755
--- a/stats/gen_report.py
+++ b/stats/gen_report.py
@@ -144,27 +144,24 @@ if not os.path.isdir(report_folder):
print ("Error while creating the report folder")
def getResultsBenchmarkDiffs(benchmark):
- prevValue = -1
results = []
# Compute a report per application
i = 0
- totalDiff = 0
+ origValue = -1
for commit in commits:
for result in commit.results:
if result.benchmark != benchmark:
continue
value = array(result.data).mean()
-
- if prevValue >= 0:
- diff = (value * 100.0 / prevValue) - 100.0
+ if origValue > -1:
+ diff = (value * 100.0 / origValue) - 100.0
else:
+ origValue = value
diff = 0
- prevValue = value
- totalDiff += diff
- results.append([i, totalDiff])
+ results.append([i, diff])
i = i + 1
return results