压缩算法 | 压缩比 | 压缩速度 | 解压速度 |
ZLIB 1.2.11 -1 | 2.743 | 110MB/S | 400MB/S |
LZ4 1.8.1 | 2.101 | 750MB/S | 3700MB/S |
ZSTD 1.3.4-1 | 2.877 | 470MB/S | 1380MB/S |
SNAPPY 1.1.4 | 2.091 | 530MB/S | 1800MB/S |
消息大小 | 消息 | 压缩算法 | topic 监控消息大小 | 客户端消息压缩耗时 | 消息发送耗时 |
5M | 随机消息体 | LZ4(阀值5MB) | 9.95MB | 31ms | 0.049ms |
| | ZLIB | 7.26MB | 31ms | 0.038ms |
| | ZSTD | 8.20MB | 31ms | 0.039ms |
| | SNAPPY(阀值5MB) | 9.70MB | 33ms | 0.046ms |
6M | 随机消息体 | ZLIB(阀值6MB) | 8.71MB | 35ms | 0.044ms |
| | ZSTD(阀值6MB) | 9.84MB | 35ms | 0.046ms |
20M | 相同消息体 | LZ4 | 0.16MB | 41ms | 0.006ms |
| | ZLIB | 0.20MB | 42ms | 0.006ms |
| | ZSTD | 0.01MB | 42ms | 0.003ms |
| | SNAPPY | 2.47MB | 41ms | 0.021ms |
40M | 相同消息体 | LZ4 | 0.32MB | 123ms | 0.008ms |
| | ZLIB | 0.39MB | 122ms | 0.008ms |
| | ZSTD | 0.01MB | 124ms | 0.004ms |
| | SNAPPY | 4.95MB | 123ms | 0.036ms |
80M | 相同消息体 | LZ4 | 0.63MB | 241ms | 0.009ms |
| | ZLIB | 0.39MB | 244ms | 0.01ms |
| | ZSTD | 0.01MB | 243ms | 0.004ms |
| | SNAPPY(阀值80M) | 9.9MB | 243ms | 0.056ms |
160M | 相同消息体 | LZ4 | 1.26MB | 484ms | 0.013ms |
| | ZLIB | 1.56MB | 479ms | 0.016ms |
| | ZSTD | 0.03MB | 481ms | 0.004ms |
320M | 相同消息体 | LZ4 | 2.5MB | 1035ms | 0.03ms |
| | ZLIB | 3.1MB | 1008ms | 0.027ms |
| | ZSTD | 0.03MB | 949ms | 0.004ms |
585M | 相同消息体 | LZ4 | 4.59MB | 1705ms | 0.027ms |
| | ZLIB | 5.67MB | 1733ms | 0.03ms |
| | ZSTD | 0.11MB | 1722ms | 0.006ms |
java -jar tdmq-sdk-demo-1.0-SNAPSHOT-jar-with-dependencies.jar pulsar://xxxx:6650
eyJrZXlJZCI6ImRlZmF1bHRfa2V5SWQiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzdXBlcnVzZXIifQ.dYcCfp4XrdWRKdKaWylobY-_xEExfRCi1pMvNyZXbqU
pulsar-78ra8ownxb7d/BigMSGSpace/BigMSGTopic subname 1 500 0 1 20480 1 0
java -jar tdmq-sdk-demo-1.0-SNAPSHOT-jar-with-dendencies.jar pulsar://xxxx:6650eyJrZXlJZCI6ImRlZmF1bHRfa2V5SWQiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzdXBlcnVzZXIifQ.dYcCfp4XrdWRKdKaWylobY-_xEExfRCi1pMvNyZXbqUpulsar-92d7w2mjwmv9/BigMessSpace/BigMessTopic subname 1 500 1
本页内容是否解决了您的问题?