7 logfile = open(filename)
11 for line
in logfile.readlines():
13 name = line.split(
"SUCCESS")[0]
14 runtime[name] = float(line.split(
"runtime of")[1] )
15 if name
in nOfInstances: number = nOfInstances[name]
17 nOfInstances[name] = number+1
22 x.append( runtime[name] )
23 y.append( nOfInstances[name] )
25 ax = fig.add_subplot(111)
28 plt.xlabel(
"Runtime (s)")
29 plt.ylabel(
"# instances")
30 plt.title(
"Requested algorithm instances with 10 events and 10 threads in parallel.")
31 plt.savefig(
"test.pdf")
def instancesVsTime(filename)