Loading WebAssembly

LZ4 Compression Demo Go WASM

Compress and decompress data in your browser using a Go WebAssembly module

About LZ4

LZ4 is an extremely fast lossless compression algorithm focused on compression and decompression speed. It trades some compression ratio for dramatically higher throughput compared to algorithms like zlib or zstd. Typical compression speeds exceed 500 MB/s, and decompression can surpass 4 GB/s on modern hardware.

Fast mode targets maximum speed. L1–L9 are high-compression modes that achieve better ratios at the cost of slower compression (decompression stays fast). L6 is a good balance for archiving.

Input Data

No file selected

Live Benchmark

Runs your current input data through all compression levels and measures throughput. Each level runs for ~300 ms to get a stable result. The benchmark runs on the WASM thread so the page will be unresponsive for a few seconds.

Ready — load a sample or type text above