From 341e0fbd06aac57ecdec5fd4802bb5175c939e1b Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Sat, 5 Oct 2013 16:25:51 -0400 Subject: Switch raw data field to uint64 to fit all values and update benchmark. --- benchmark/proto/compare_sizes.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'benchmark/proto/compare_sizes.py') 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 -- cgit 1.2.3-korg