guoyuhong commented on issue #979: Add LZ4 compression method URL: https://github.com/apache/incubator-brpc/pull/979#issuecomment-559462933 The through-put test result in my Mac is illustrated as follows: ``` [ RUN ] test_compress_method.throughput_compare Compress method Compress size(B) Compress time(us) Decompress time(us) Compress throughput(MB/s) Decompress throughput(MB/s) Compress ratio Snappy 128 1.951000 3.174200 62.568074 38.457032 37.500000% Gzip 128 16.862000 1.775200 7.239373 68.764259 47.656250% Zlib 128 16.767600 1.671600 7.280130 73.026030 38.281250% Lz4 128 2.453200 1.085800 49.759625 112.424307 40.625000% Snappy 1024 3.013600 4.283000 324.051799 228.008989 8.789062% Gzip 1024 20.934800 2.597800 46.647807 375.919047 6.640625% Zlib 1024 21.442000 2.802600 45.544376 348.448762 5.468750% Lz4 1024 3.795000 1.860000 257.328722 525.033602 5.371094% Snappy 16384 20.087402 25.426758 777.850701 614.510120 4.962158% Gzip 16384 85.144531 18.897461 183.511492 826.830655 0.781250% Zlib 16384 96.994141 20.334961 161.092205 768.381117 0.708008% Lz4 16384 26.291992 16.929688 594.287412 922.934933 0.720215% Snappy 32768 38.327148 48.486328 815.348944 644.511581 4.824829% Gzip 32768 160.242188 36.761719 195.017308 850.069068 0.537109% Zlib 32768 154.811523 35.366211 201.858359 883.611763 0.500488% Lz4 32768 42.048828 26.112305 743.183613 1196.753805 0.555420% Snappy 524288 534.812500 701.968750 934.907094 712.282420 4.747772% Gzip 524288 3934.968750 652.843750 127.065812 765.880044 0.305939% Zlib 524288 3526.609375 644.046875 141.779241 776.341008 0.303650% Lz4 524288 930.187500 643.671875 537.526036 776.793300 0.402260% [ OK ] test_compress_method.throughput_compare (2479 ms) [ RUN ] test_compress_method.throughput_compare_complete_random Compress method Compress size(B) Compress time(us) Decompress time(us) Compress throughput(MB/s) Decompress throughput(MB/s) Compress ratio Snappy 128 2.455600 2.682000 49.710992 45.514658 105.468750% Gzip 128 28.807800 5.459400 4.237405 22.359657 114.843750% Zlib 128 29.981600 5.334800 4.071508 22.881891 105.468750% Lz4 128 4.899000 1.422800 24.917394 85.795834 105.468750% Snappy 1024 6.925600 4.218200 141.007638 231.511664 100.781250% Gzip 1024 36.315600 9.600600 26.890992 101.718903 79.492188% Zlib 1024 33.593400 8.743000 29.070070 111.696500 78.320312% Lz4 1024 14.797400 2.535800 65.995547 385.110222 100.976562% Snappy 16384 50.080078 18.950195 312.000312 824.529760 100.061035% Gzip 16384 450.982422 90.155273 34.646583 173.312103 75.286865% Zlib 16384 422.096680 84.948730 37.017586 183.934473 75.213623% Lz4 16384 52.208496 11.209961 299.280791 1393.849638 100.445557% Snappy 32768 47.498047 21.583984 657.921790 1447.832775 100.030518% Gzip 32768 1060.168945 162.815430 29.476434 191.935126 75.247192% Zlib 32768 1122.420898 172.125977 27.841606 181.553073 75.210571% Lz4 32768 79.860352 21.399414 391.308070 1460.320358 100.418091% Snappy 524288 644.250000 338.468750 776.096236 1477.241252 100.006866% Gzip 524288 24807.281250 2400.531250 20.155373 208.287228 75.212669% Zlib 524288 26765.390625 2533.171875 18.680841 197.381001 75.210381% Lz4 524288 598.203125 344.453125 835.836489 1451.576321 100.393677% [ OK ] test_compress_method.throughput_compare_complete_random (9929 ms) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
