Skip to content

Instantly share code, notes, and snippets.

View rywng's full-sized avatar

Ryan Wong rywng

View GitHub Profile
@rywng
rywng / 00_lzo_vs_zstd.md
Last active February 14, 2024 08:37
lzo vs. zstd compression benchmark

lzo vs. zstd compression benchmark

lzo and zstd are both advertised as fast loseless compression algorithm, and are implemented in btrfs filesystem. This benchmark tries to figure out which one is ideal for personal linux desktop usage, by simulating some common files that I might store.

The code is modified from https://gist.github.com/atoponce/353f4b4520d95ad71d3896b8aa21e166

test files are stored on tmpfs (in memory), to avoid hard drive bottleneck

CPU: 13th Gen Intel i9-13900H (20) @ 5.200GHz