Skip to content

Instantly share code, notes, and snippets.

View rywng's full-sized avatar
💭
Working on linux wayland compositors

Ryan Wong rywng

💭
Working on linux wayland compositors
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