Commit 03634c37 authored by Taddeüs Kroes's avatar Taddeüs Kroes

ModSim ass4 taddeus: Added sequential to benchmark plot.

parent 0558a9ac
......@@ -24,13 +24,13 @@ x = x[1:]
y = y[1:]
# Least squares data fit
c = tuple(polyfit(, y, 2).tolist())
c = tuple(polyfit(x, y, 2).tolist())
fit = polyval(c, x)
# Plot and optionally save data
plot(x, y, 'x')
plot(seq[0], seq[1], 'x')
plot(x, fit, '-')
plot(seq[0], seq[1], 'x')
xlabel('Aantal processen')
ylabel('Tijd (s)')
if len(argv) > 1:
......
9.81
1 9.67
1 9.67
1 9.69
1 9.69
2 5.86
2 5.81
2 5.81
......@@ -44,6 +47,6 @@
12 4.01
12 2.80
13 3.19
13 2.33
13 3.03
13 3.14
13 3.15
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