diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2015-07-23 15:08:40 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2015-07-23 15:08:40 +0300 |
commit | 5d534ed1c993f9d37852b2e2c817312b1ae937af (patch) | |
tree | fb495b46f005eacc2d7b4eda06b333efaddaec88 /stats | |
parent | ad686e3b4ade93446733341a678e3b661c978121 (diff) |
stats/gen_report: plot the benchs' run along with its run with the previous commit
Diffstat (limited to 'stats')
-rwxr-xr-x | stats/gen_report.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/stats/gen_report.py b/stats/gen_report.py index 77a60c7..02161d1 100755 --- a/stats/gen_report.py +++ b/stats/gen_report.py @@ -204,9 +204,12 @@ print(" DONE") # Generate the large images +plt.rcParams.update({'font.size': 9}) print("Generating the runs' output image",end="",flush=True) -for commit in commits: - for result in commit.results: +for c in range (0, len(commits)): + commit = commits[c] + for r in range (0, len(commit.results)): + result = commit.results[r] f = plt.figure(figsize=(19.5, 2)) gs = gridspec.GridSpec(1, 2, width_ratios=[4, 1]) x = array(result.data) @@ -214,7 +217,10 @@ for commit in commits: plt.title("Time series across all the runs") plt.xlabel('Run #') plt.ylabel('FPS') - ax1.plot(x) + ax1.plot(x, label="cur.") + if c > 0: + ax1.plot(commits[c - 1].results[r].data, label="prev.") + plt.legend() ax2 = plt.subplot(gs[1]) plt.title("FPS distribution") |