~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to scripts/plot-align.py

  • Committer: Will Newton
  • Date: 2013-06-25 14:07:04 UTC
  • Revision ID: will.newton@linaro.org-20130625140704-jp1ad8y2p8d416qk
Support multiple runs of each benchmark.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
            matches = [x for x in records if x.variant==variant and x.src_alignment==alignment[0] and x.dst_alignment==alignment[1]]
30
30
 
31
31
            if matches:
32
 
                match = matches[0]
33
 
                heights.append(match.bytes*match.loops/match.elapsed/(1024*1024))
 
32
                vals = [match.bytes*match.loops/match.elapsed/(1024*1024) for
 
33
                        match in matches]
 
34
                mean = sum(vals)/len(vals)
 
35
                heights.append(mean)
34
36
            else:
35
37
                heights.append(0)
36
38