diff options
Diffstat (limited to 'benchmarks/python')
-rw-r--r-- | benchmarks/python/__init__.py | 0 | ||||
-rwxr-xr-x | benchmarks/python/py_benchmark.py | 6 |
2 files changed, 4 insertions, 2 deletions
diff --git a/benchmarks/python/__init__.py b/benchmarks/python/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/benchmarks/python/__init__.py diff --git a/benchmarks/python/py_benchmark.py b/benchmarks/python/py_benchmark.py index a551ba6d..6942d208 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 "" |