aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorYilun Chong <yilunchong@google.com>2018-04-10 14:48:03 -0700
committerYilun Chong <yilunchong@google.com>2018-04-10 14:48:03 -0700
commite3af02303ade12e688ccc0b9fe1f5a77faff7ae7 (patch)
tree3ae55332210921bc644a5d2d5b096352e669700f /benchmarks
parent76d76ae39c87815f114e7087ff483565fa86d9ff (diff)
downloadprotobuf-e3af02303ade12e688ccc0b9fe1f5a77faff7ae7.tar.gz
protobuf-e3af02303ade12e688ccc0b9fe1f5a77faff7ae7.tar.bz2
protobuf-e3af02303ade12e688ccc0b9fe1f5a77faff7ae7.zip
fix python
Diffstat (limited to 'benchmarks')
-rwxr-xr-xbenchmarks/python/py_benchmark.py6
1 files changed, 4 insertions, 2 deletions
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 ""