diff --git a/benchmark.yml b/benchmark.yml index 7eb70eea15d45156a6a1b0428d5546e05d7e490a..16d43d9596ba155e16c4779a4f91d77717771715 100644 --- a/benchmark.yml +++ b/benchmark.yml @@ -12,7 +12,7 @@ parameterset: - name: benchParam parameter: - name: inputpowercap - _: "100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 340, 360, 380, 400" + _: "20,40,60,80" - name: systemParam init_with: "platform.xml:systemParameter" parameter: diff --git a/post/multiplot.py b/post/multiplot.py new file mode 100755 index 0000000000000000000000000000000000000000..e97a2664c77da95db2abdbd62efbc8c3882278a1 --- /dev/null +++ b/post/multiplot.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python3 + + +import matplotlib.pyplot +import csv +import argparse + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + parser.add_argument("--output", help="output file") + parser.add_argument("--powercap", help="powercap") + args = parser.parse_args() + + colors = ["red", "blue", "green"] + markers = ["o", "^", "s"] + fig, ax = matplotlib.pyplot.subplots() + for i in [100, 200, 300]: + x = [] + y = [] + filename = str(i) + ".csv" + with open(filename) as f: + plots = csv.reader(f, delimiter=",") + for index, row in enumerate(plots): + if index != 0: + x.append(int(row[0])) + y.append(int(row[1])) + + ax.plot(x, y, marker=markers.pop(0), color=colors.pop(0), label="BMC Powercap=" + str(i)) + ax.set(xlabel="power / W", ylabel="performance / bogo-mips") + ax.legend() + matplotlib.pyplot.savefig(args.output) + + +