pylab.ylabel("Time (ms)") pylab.legend(loc="upper left") pylab.savefig(filename) if __name__ == "__main__": sizes = [pow(2, x) for x in range(10, 26)] algorithms = [ "accumulate", "count", "inner_product", "merge", "partial_sum", "partition", "reverse", "rotate", "saxpy", "sort", "unique", ] try: os.mkdir("perf_plots") except OSError: pass for algorithm in algorithms: print("running '%s'" % (algorithm)) report = run_benchmark(algorithm, sizes, ["stl", "thrust"]) plot_to_file(report, "perf_plots/%s_time_plot.png" % algorithm)
pylab.ylabel("Time (ms)") pylab.legend(loc='upper left') pylab.savefig(filename) if __name__ == '__main__': sizes = [pow(2, x) for x in range(10, 26)] algorithms = [ "accumulate", "count", "inner_product", "merge", "partial_sum", "partition", "reverse", "rotate", "saxpy", "sort", "unique", ] try: os.mkdir("perf_plots") except OSError: pass for algorithm in algorithms: print("running '%s'" % (algorithm)) report = run_benchmark(algorithm, sizes, ["stl", "thrust"]) plot_to_file(report, "perf_plots/%s_time_plot.png" % algorithm)
pylab.legend(loc='upper left') pylab.savefig(filename) if __name__ == '__main__': sizes = [pow(2, x) for x in range(10, 26)] algorithms = [ "accumulate", "count", "inner_product", "merge", "partial_sum", "partition", "reverse", "rotate", "saxpy", "set_difference", "sort", "unique", ] try: os.mkdir("perf_plots") except OSError: pass for algorithm in algorithms: print "running '%s'" % (algorithm) report = run_benchmark(algorithm, sizes, ["stl"]) plot_to_file(report, "perf_plots/%s_time_plot.png" % algorithm)