diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-10-05 16:25:51 -0400 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-07 13:18:10 -0500 |
commit | 341e0fbd06aac57ecdec5fd4802bb5175c939e1b (patch) | |
tree | be2516995e2390d092f73f7fa2165026cfc64347 /benchmark/proto/compare_sizes.py | |
parent | b68150231d6f1a2608e2d33187e05d5d3bf4a5f1 (diff) |
Switch raw data field to uint64 to fit all values and update benchmark.
Diffstat (limited to 'benchmark/proto/compare_sizes.py')
-rwxr-xr-x | benchmark/proto/compare_sizes.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmark/proto/compare_sizes.py b/benchmark/proto/compare_sizes.py index f31a2e4b..e4ae6691 100755 --- a/benchmark/proto/compare_sizes.py +++ b/benchmark/proto/compare_sizes.py @@ -35,11 +35,9 @@ for trace_file in sys.argv[1:]: # but most of ours are full 64+11 bits total_raw_can_size += 10 total_raw_json_size += len(json.dumps(json_message)) - binary_message = openxc_pb2.RawMessage() - binary_message.message_id = json_message['id'] - binary_message.data = int(json_message['data'], 0) message.type = openxc_pb2.VehicleMessage.RAW - message.raw_message = binary_message + message.raw_message.message_id = json_message['id'] + message.raw_message.data = int(json_message['data'], 0) total_raw_binary_size += len(message.SerializeToString()) else: message.type = openxc_pb2.VehicleMessage.TRANSLATED |