Last active
December 31, 2019 06:44
-
-
Save myhrvold/e818f54f5675fc826b3c to your computer and use it in GitHub Desktop.
Encoding Protocol and Compression Algorithm Test Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach (encode/decode, compress/decompress): | |
start = time.now() | |
packed = compress(encode(json)) | |
size = len(packed) | |
unpack = decode(decompress(packed)) | |
elapsed = time.now() - start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Conor,
The topic of testing the performance of a combination of serialization and compression algorithms is very interesting, and it is very valuable. After reading the article How Uber Engineering Evaluated JSON Encoding and Compression Algorithms to Put the Squeeze on Trip Data, I have some questions:
Thanks! Looking forward to your guidance!
Alan Wang
Process of processing JSON format data
Process of processing MessagePack format data