← All benchmarksLinux
logrotate compress: 24.8 MB to 3.8 MB
How much space does logrotate compression save?
300,000 synthetic request log lines (24.8 MB) became a 3.8 MB .gz file after logrotate with compress, 85% smaller.
Results
| app.log | 24.8 MB |
|---|---|
| app.log.1.gz | 3.8 MB |
How it was measured
Synthetic access-log style lines.
compress
rotate 7Why
Repetitive text compresses well.
When this does not apply
Ratios vary with real logs.
Environment
GitHub-hosted Ubuntu 24.04 runner (2 vCPU, ~8 GB RAM), systemd 255. Measured 2026-10-12.
Source: linux-lab/04-logrotate-compress.sh in my content-engine repository. Treat any single run as a direction; re-run it on your hardware.
By Josué Barros, senior software engineer (full-stack, data and AI).