TurboBench README

项目的 README,来自 github.com/powturbo/TurboBench。合并为一个 markdown 文件:README.md。

TurboBench:Compressor Benchmark

Build ubuntu

TurboBench Logo

TurboBench: The Ultimate Data Compression Benchmark

100+ Codecs. The Powerhouse in a Single Executable — The Compression Lie Detector

Tired of misleading benchmarks with I/O overhead, cache effects, and CPU throttling? TurboBench delivers high-precision, zero-overhead results you can actually trust.

Why TurboBench Stands Out

Broad Platform Support

Linux (amd/intel, ARM, RISC-V, PowerPC, s390x, loongson), macOS (Apple M1–M5), and Windows (MSYS2, MinGW, Visual C++).

Rich, Ready-to-Use Outputs

All-in-one executable — no Python, no extra graphic libraries, zero dependencies, zero installers, zero configuration, no hassle. Just download, run, and benchmark.

Perfect for developers, researchers, and performance enthusiasts who demand accurate, apples-to-apples comparisons.


TurboBench — Precision you can rely on. The gold standard for compression benchmarking. 🚀

Try it now:

Benchmark:

TurboBench vs LzBench

Feature TurboBench Lzbench
Benchmark
Large number of codecs (isa-l/zlib-ng/blosc,...) ✅ ⚠️
Control throttling via CPU frequency ✅ ❌
Automatic sorting, updating & merging of result files ✅ ❌
In-place progress display (compression/decompression speed) ✅ ❌
Separate results for each compressor set ✅ ❌
Data Handling
Concatenation of small files into one multiblock file ✅ ❌
Independent compression of many small files ✅ ❌
Multiple files & recursive directories ✅ ✅
Support for very large files (multi-GB) ✅ ⚠️
Dictionary support ✅ ❌
Codec parameter support ✅ ❌
Metrics
Rank aggregation & score with medals ✅ ❌
Pareto-front visualization ✅ ❌
Multiple output formats (HTML, Markdown, CSV, encode.su) ✅ ⚠️
SVG bar & scatter images ✅ ❌
Transfer-speed sheets (GPRS → 5G, HDD, SSD, RAM,...) ✅ ❌
Peak memory/Stack usage (compress + decompress) ✅ ❌
Codec & Configuration Coverage
Cross-platform support (x86, ARM, RISC-V, PowerPC…) ✅ ⚠️
Submodule architecture with automatic codec update ✅ ❌
Use codecs’ built-in tools, matching original builds & optimizations ✅ ❌
Advanced
Incremental benchmarking ✅ ❌
Simple integration of new codecs ✅ ❌
Nightly GitHub release w. executables ✅ ❌
- Groups FASTEST,FAST,EFFICIENT,MAX,OPTIMAL,BWT:
- Codecs:
- Print + Plot
- Bar/Scatter charts

Compile:

		git clone --depth=1 --recursive https://github.com/powturbo/TurboBench.git
    cd TurboBench
		make

Environment:

OS/Compiler (32 + 64 bits):

Codecs:

Compressor Lz77,Rolz,zpaq:

Compressor Added Language Comment
LzTurbo c
axz 2026/12 c MT lz
aceapex 2026/10 c++/cuda MT lz
AMD AOCL 2026/09 c++ MT tuned lz4,zstd,bzip2 for amd64
Blaris 2026/11 c lz / Microcontrollers/memory-constrained
BriefLz c lz
Brotli c lz+huffman
Chameleon c lz
CSC c lz
Density 2026/09 rust lz
Doboz c lz
FastLz c lz
Fast-lzma c lz+range coder
Firetrail zig lz
glza c lz+huffman
Glyd 2026/09 rust MT lz+huffman/tans
heatshrink c lz / Microcontrollers/memory-constrained
Iguana 2026/09 c++ Not reliable
Intel(R) ISA-L c lz+huffman, zlib compatible
kanzi 2026/07 c++ MT lz,bwt,paq
lib 2026/09 c
Libdeflate c lz+huffman
LibLZF c lz
LibLz c lz
LibSLZ c lz+huffman, zlib
Lz0 c lz
Lz4 c lz MT
Lz4ultra c lz
lzjody c lz
lizard c lz+byte+huffman
Lzfse c lz+tans
Lzham v1.1 c++ MT lz+huffman
Lzlib 2026/09 c lz+range coder
Lzmat c lz
Lzma c MT lz+range coder
Lzo c lz
Lzoma c lz
lzraven 2026/09 c Apple's reimplementation
LZSSE c lz
LZSA c lz
mbrotli 2026/09 rust Brotli reimplementation
Memlz 2026/07 c lz
Minlz 2026/11 go/asm lz
Minlz-rs 2026/12 rust lz
Minlz-c 2026/11 c lz (Experimental C-gist)
Miniz c lz+huffman
misa77 2026/07 c++/asm lz
ms-compress c++ lz
mzip 2026/09 c too slow
mbrotli 2026/10 rust zstd reimplementation
Oodle c++ windows/linux/macos x86_64/arm64
orz 2026/11 rust rolz
Pithy c lz
Quicklz c lz
sap c++ lz+huffman
shoco c short strings
Shrinker c lz
Smallz4 c lz
smaz c short strings
Snappy c++ lz
Snappy-c c lz
structured-zstd 2026/11 rust zstd reimplementation
Tamp 2026/07 c lz Microcontrollers/memory-constrained
Tinyuz 2026/11 c lz Microcontrollers/memory-constrained
Tornado c++ lz+huffman
Unishox c short strings
velo 2026/12 c lz
wfLZ c lz
wzip 2026/10 c MT wlz4:lz wzip:lz+huffman
yalz77 c lz
yappy v2011 c lz
xpack lz+huffman
xz 2026/05 c lz+range coder
zlib c lz+huffman
zlib cloudflare c lz+huffman
zlib-ng c lz+huffman
zlib-rs 2026/11 rust lz+huffman
zlib-turbo c MT lz+huffman
zopfli c lz+huffman
zstd c MT lz+huffman/tans
zpaq c++ paq+range coder
zxc 2026/05 c MT lz

BWT - Burrows–Wheeler transform:

Compressor Added Language Comment
bcm 2026/10 c++
libbsc/bsc c++ MT
BwtSatan 2026/09 c MT
bz2-ng c bzip2 api-compatible
bzip2 c
bzip3 c
kanzi bwt (level 5,6,7) 2026/07 c++ MT
Pulsar / rust 2026/09 c very slow

Integer / Floating point:

Compressor Added Language Comment
Blosc c MT integer/fp 8-64
OpnZL 2026/07 c++ i8-i64,u8-u64,csv,...
Pcodec 2026/09 rust i8-i64,u8-u64,f32,f64

Entropy coder:

Compressor Added Language Comment
Bitwise range coder
TurboRC-Range Coder c
Bitwise RC v2010 c
Bitwise vector RC v2012 c
AOMedia AV1 entropy coder c
Daala entropy coder c
FastAri v15-10 c
Bytewise range coder
TurboAC c
subotin range coder v2000 c
Fast AC v2006 c
FQZ/PPMD Range Coder v15-03 c
PPMD Range Coder v15-03 c
rgc 2026/11 c
sserangecoding c
ABS: Asymmetric binary systems
Fpaqc:Asymmetric Binary Coder v07-12 c++
ANS: Asymmetric Numeral Systems
TurboANX-ANS c
TurborANS c
Finite State Coder v15-05 c
Finite State Entropy v16-08 c
Oodle tans 2026/09 c++ windows/linux/macos
Huffman Coding
TurboHF-Huffmann v1.3 c
Tornado Huf v0.6a c++
zlib Huffmann v1.2.8 c
Fast HF v2006 c
FPC c
FSE Huff c
Oodle huffman 2026/09 c++ windows/linux/macos
Polar Codes v10-07 c
Pivco-Huffman 2026.07 c++
memcpy
memcpy Added Language Comment
inline memcpy c
library memcpy c

Encoding:

Compressor Added Language Comment
TurboRLE c Turbo Run Length Encoding
tcobs c short messages compression with COBS framing
TurboBase64 c Turbo Base64 Encoding/Decoding
fastbase64 c Base64 Encoding
base64 c Fast Base64 stream encoder/decoder

Transform:

Compressor Added Language Comment
bwt:libdivsufsort c
st: bsc schindler transform c++

TurboBench Manual

Usage

turbobench [options] [file(s)]

General Options

Size Modifiers (s):

Benchmark Options

Check Options

Output & Plotting Options

Multiblock/Join

Predefined Groups: (see turbobench.ini file)

Examples

./turbobench enwik9 -eFAST/bzip2/lzma,5,9
./turbobench enwik9 -eFAST/OPTIMAL/bsc,0:e2 -i0
./turbobench eECODER -k"entropy coder test"
./turbobench enwik9 -elzma,9:fb273:lc2:lp2:t2
./turbobench enwik9 -eFAST -aFAST

Codec parameters:

Acknowledgements:

Last update: 04 DEC 2026

TurboBench (powturbo/TurboBench)

正在搜索数据库…

这是什么东西?TurboBench 是一个数据压缩基准测试工具:单个可执行文件就能在内存中测试 100 多种压缩器,并展示哪些在速度和压缩比上表现最好。
它是命令行工具,还是有图形界面的软件?它是一个命令行工具——一个零依赖的一体化可执行文件:不需要 Python,不需要图形库,没有安装程序,也不需要配置。
我怎么把它跑起来?从 GitHub Releases(nightly 构建)下载现成的可执行文件,或者自己编译:git clone --depth=1 --recursive,cd TurboBench,make;然后运行 ./turbobench -h 查看帮助。
测试文件的大小有限制吗?测试块最大为 1 GB,默认的基准测试文件大小也是 1 GB;如果是几 GB 的大文件,可以用 -B 调大(比如 -B4G)。
它能在哪些系统和 CPU 上运行?Linux(x86、ARM、RISC-V、PowerPC、s390x、loongson)、macOS(Apple M1–M5)和 Windows(MSYS2、MinGW 或 Visual C++),均有 32 位和 64 位版本。
LzTurbo 是什么?这是作者自己开发的压缩器;TurboBench 是唯一一个把它和 100 多种主流压缩算法放在一起测试的基准工具,方便你直接对比。
除了普通的文件压缩器,它还能测试别的东西吗?可以——包括整数和浮点数编解码器(Blosc、OpnZL、Pcodec)、原始熵编码器(ANS、range、Huffman)、TurboRLE 和 Base64 之类的编码,以及 BWT/Schindler 变换。
为什么它在测试时要控制 CPU 频率?为了减少 CPU 降频,否则长时间运行会导致结果失真;它还可以在长时间处理的间隔中休眠(-S 选项),以保证测量的准确性。
测试结果存在哪里?保存在 .tbb 结果文件中,每个压缩器组合一个文件(用 -a 选项时为 [email protected]);当你重新测试或添加压缩算法时,TurboBench 会自动排序、更新和合并这些文件。
有哪些类似的项目?ripgrep, hatchzip, lz4, pyrowave, ttfx, simdjson, MacPacker, spinel
作者
powturbo
大小
65.6 MB
星标
377
时长
11年
提交 · 90 天