Example #1
0
def main():
	brs = []
	for cfg in configs:
		out = framework.run_cmd("./cache_bench %s" % (cfg.flags(),))
		print '#######################'
		print out
		benches = parse_out(out, _parse_desc)
		name = "cache {cache_size}".format(**cfg.config)
		brs.append(framework.BenchRun(name=name, config=cfg, bench=benches))
	framework.visualize_diff("cache_bench.pdf", brs)
def main():
	brs = []
	for cfg in configs:
		#The output of this benchmark is in stderr!!!
		out = subprocess.check_output('./table_reader_bench', stderr=subprocess.STDOUT, shell=True)
		benches = parse_out(out)
		name = ''
		print benches
		brs.append(framework.BenchRun(name='', config=cfg, bench=benches))
	framework.visualize_diff("table_reader_bench.pdf", brs)