In 2017 I wrote "Fastest Redis configuration for Django". Now, I've made an update for 2026 that focuses on comparing default Redis with three compressors:
zliblzmazstd
The results on macOS are:
TIMES AVERAGE MEDIAN (P50) MEDIAN (P90) STDDEV
default 198 0.181ms 0.176ms 0.216ms 0.038ms
zlib 213 0.190ms 0.182ms 0.237ms 0.039ms
lzma 134 0.273ms 0.272ms 0.332ms 0.042ms
zstd 202 0.192ms 0.180ms 0.243ms 0.046ms
Best Means (shorter better)
###############################################################################
█████████████████████████████████████████ 0.181 default
███████████████████████████████████████████ 0.190 zlib
███████████████████████████████████████████████████████████████ 0.273 lzma
████████████████████████████████████████████ 0.192 zstd
Best Medians (shorter better)
###############################################################################
████████████████████████████████████████ 0.176 default
██████████████████████████████████████████ 0.182 zlib
███████████████████████████████████████████████████████████████ 0.272 lzma
█████████████████████████████████████████ 0.180 zstd
Size of Data Saved (shorter better)
###############################################################################
████████████████████████████████████████████████████████████████ 5151 default
██████████████████████████ 2151 zlib
█████████████████ 1420 lzma
████████████████████████ 2010 zstd
Size of Data without Default (shorter better)
###############################################################################
███████████████████████████████████████████████████████████████████ 2151 zlib
████████████████████████████████████████████ 1420 lzma
██████████████████████████████████████████████████████████████ 2010 zstd
The "conclusion", on macOS, is that lzma is slowest but compresses the best. On Ubuntu (in GitHub Actions), the fastest of the compressors is zstd and the best compression is lzma.
But it's a very small difference.
The type of data you store in Redis will matter for your use case. In this experiment, it's storing strings of numbers. Each number is about 10 characters long.