Commit 359746b2 authored by Taddeüs Kroes's avatar Taddeüs Kroes

ModSim ass4 taddeus: Fixed benchmark plot script.

parent 57d8d87d
...@@ -11,13 +11,16 @@ for line in results.readlines()[1:]: ...@@ -11,13 +11,16 @@ for line in results.readlines()[1:]:
n, t = line[:-1].split(' ') n, t = line[:-1].split(' ')
# Use the minimum of all measurements # Use the minimum of all measurements
if len(x) and x[-1] is int(n) and y[-1] > float(t): if len(x) and x[-1] == int(n):
if y[-1] > float(t):
y[-1] = float(t) y[-1] = float(t)
continue continue
x.append(int(n)) x.append(int(n))
y.append(float(t)) y.append(float(t))
print x, y
# Plot data # Plot data
plot(x, y, 'o-') plot(x, y, 'o-')
if len(argv) > 1: if len(argv) > 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment