Skip to content

Compression

Clayton Knittel edited this page Feb 12, 2021 · 1 revision

To enable compression, pass the --compress flag without any arguments. This enables compressino to be used over the network.

Note: only the Enterprise server supports compression

For example:

target/benchmark --compress

Setting a desired compression ratio

To set a desired compression ratio, pass the --compressionRatio flag followed by the desired ratio (with 1 being no compression).

This target compression ratio is reached by modifying how random binary data is generated, and thus the only type of object that is affected by this option is binary data. For example, with an object spec of I,D,S10, the data being generated will not be affected by --compressionRatio. However, with an object spec of I,D,B10, the B10 object will be made to be compressible at approximately the desired compression ratio.

For a full description of object specs, see here.

For example, to run a 30-second read/update workload on objects of the form [I,D,B10],B20 with compression enabled and a desired compression ratio of 0.5, run:

target/benchmark -t 30 -o "[I,D,B10], B20" --compress --compressionRatio 0.5