提交 731eadb8 编写于 作者: S Steven Li

Minor tweak of the new Perf_gen tool

上级 ba515435
......@@ -467,9 +467,14 @@ def main():
Dice.seed(0) # initial seeding of dice
bName = Config.getConfig().benchmark_name
bClass = globals()[bName + 'Benchmark']
bm = bClass() # Benchmark object
bm.run()
bClassName = bName + 'Benchmark'
x = globals()
if bClassName in globals():
bClass = globals()[bClassName]
bm = bClass() # Benchmark object
bm.run()
else:
raise PerfGenError("No such benchmark: {}".format(bName))
# bm = Benchmark.create(Config.getConfig().target_database)
# bm.run()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册