> ## Documentation Index
> Fetch the complete documentation index at: https://servamind.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Check compression rate

> How compression ratio is defined for `.serva` files: original size, encoded size, and the percentage formula.

## Compression ratio

**Compression ratio** is reported as a **percentage** of size reduction relative to the **original** (source) file.

Use this definition:

```text theme={null}
compression_ratio (%) = ((original_size − encoded_size) / original_size) × 100%
```

| Variable | Definition |
| - | - |
| `original_size` | Byte size of the **source** file before encoding. |
| `encoded_size` | Byte size of the resulting **`.serva`** file after encoding. |

**Interpretation:** A higher percentage means more of the original size was removed by encoding. If the encoded file is larger than the source, the result is negative; treat that as **expansion** rather than compression in metrics or dashboards.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.