9 methods = ["sqlite", "csv", "binfile"]
15 for program in methods:
16 data.update({program : []})
19 while (numpoints < 10000):
23 run = ["./"+program, str(bufsiz), str(numpoints)]
25 for i in xrange(averages):
26 p = subprocess.Popen(run, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
27 times.append(float(p.stdout.readline().strip(" \r\n")))
29 times = numpy.array(times)
30 data[program].append([numpoints,bufsiz,numpy.mean(times), numpy.std(times)])
35 g("set xlabel \"Data Points\"")
36 g("set ylabel \"Total Time (s)\"")
37 g("set title \"Time to Store Data Points\"")
38 g.replot(Gnuplot.Data(data[program], title=program, with_="lp",using="1:3"))