From e3af02303ade12e688ccc0b9fe1f5a77faff7ae7 Mon Sep 17 00:00:00 2001 From: Yilun Chong Date: Tue, 10 Apr 2018 14:48:03 -0700 Subject: [PATCH] fix python --- benchmarks/python/py_benchmark.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmarks/python/py_benchmark.py b/benchmarks/python/py_benchmark.py index a551ba6d9..6942d2085 100755 --- a/benchmarks/python/py_benchmark.py +++ b/benchmarks/python/py_benchmark.py @@ -144,7 +144,9 @@ if __name__ == "__main__": print "Message %s of dataset file %s" % \ (result["message_name"], result["filename"]) print "Average time for parse_from_benchmark: %.2f ns" % \ - (result["benchmarks"]["parse_from_benchmark"]) + (result["benchmarks"][ \ + args.behavior_prefix + "_parse_from_benchmark"]) print "Average time for serialize_to_benchmark: %.2f ns" % \ - (result["benchmarks"]["serialize_to_benchmark"]) + (result["benchmarks"][ \ + args.behavior_prefix + "_serialize_to_benchmark"]) print ""