# compression_text

> Compression algos benchmark workloads: Compression bandwidth, Decompression bandwidth, Compression ratio.

Compression algos

## Compression bandwidth {#compression_text-compress}

Measures the compression bandwidth (bytes/second) on the dickens.txt of the Silesia corpus (10 MB uncompressed) using various algorithms, compression levels and other extra arguments.

Benchmark details<dl><dt>Benchmark ID</dt><dd><code>compression_text:compress</code></dd><dt>Unit of measurement</dt><dd>Bytes per second (Bps)</dd><dt>Server types evaluated</dt><dd>3,643</dd><dt>Total measurements</dt><dd>195,310</dd><dt>Range of measurements</dt><dd>74.2K – 68G <small>Bps</small></dd><dt>Better</dt><dd>↑ Higher is better</dd></dl>

Configuration options

| Field | Description | Example values |
| --- | --- | --- |
| `algo` | Compression algorithm, e.g. brotli or bz2. | `brotli` `bzip2` `bzip3` `gzip` `lz4` `lzma` `zpaq` `zstd` |
| `cores` | Single-Core or Multi-Core compression tests. | `multi` `single` |
| `block_size` | Block size | `65536` `1048576` `4194304` `67108864` |
| `compression_level` | Compression level/quality/level. | `0` `1` `3` `4` `5` `6` `7` `8` `9` `11` `12` `14` `16` `22` |

Score distribution <small>(195,310 measurements)</small>

![Score distribution of Compression bandwidth](/benchmarks/histograms/compression_text-compress.svg)

## Decompression bandwidth {#compression_text-decompress}

Measures the decompression bandwidth (bytes/second) on the compressed dickens.txt of the Silesia corpus (10 MB uncompressed) using various algorithms, compression levels and other extra arguments.

Benchmark details<dl><dt>Benchmark ID</dt><dd><code>compression_text:decompress</code></dd><dt>Unit of measurement</dt><dd>Bytes per second (Bps)</dd><dt>Server types evaluated</dt><dd>3,643</dd><dt>Total measurements</dt><dd>195,310</dd><dt>Range of measurements</dt><dd>74.1K – 254.2G <small>Bps</small></dd><dt>Better</dt><dd>↑ Higher is better</dd></dl>

Configuration options

| Field | Description | Example values |
| --- | --- | --- |
| `algo` | Compression algorithm, e.g. brotli or bz2. | `brotli` `bzip2` `bzip3` `gzip` `lz4` `lzma` `zpaq` `zstd` |
| `cores` | Single-Core or Multi-Core compression tests. | `multi` `single` |
| `block_size` | Block size | `65536` `1048576` `4194304` `67108864` |
| `compression_level` | Compression level/quality/level. | `0` `1` `3` `4` `5` `6` `7` `8` `9` `11` `12` `14` `16` `22` |

Score distribution <small>(195,310 measurements)</small>

![Score distribution of Decompression bandwidth](/benchmarks/histograms/compression_text-decompress.svg)

## Compression ratio {#compression_text-ratio}

Measures the compression ratio while compressing the dickens.txt of the Silesia corpus (10 MB uncompressed) using various algorithms, compression levels and other extra arguments.

Benchmark details<dl><dt>Benchmark ID</dt><dd><code>compression_text:ratio</code></dd><dt>Unit of measurement</dt><dd>—</dd><dt>Server types evaluated</dt><dd>3,643</dd><dt>Total measurements</dt><dd>195,310</dd><dt>Range of measurements</dt><dd>21 – 63.1</dd><dt>Better</dt><dd>↓ Lower is better</dd></dl>

Configuration options

| Field | Description | Example values |
| --- | --- | --- |
| `algo` | Compression algorithm, e.g. brotli or bz2. | `brotli` `bzip2` `bzip3` `gzip` `lz4` `lzma` `zpaq` `zstd` |
| `cores` | Single-Core or Multi-Core compression tests. | `multi` `single` |
| `block_size` | Block size | `65536` `1048576` `4194304` `67108864` |
| `compression_level` | Compression level/quality/level. | `0` `1` `3` `4` `5` `6` `7` `8` `9` `11` `12` `14` `16` `22` |

Score distribution <small>(195,310 measurements)</small>

![Score distribution of Compression ratio](/benchmarks/histograms/compression_text-ratio.svg)
