Home

Awesome

License .NET CodeQL GitHub repo size Languages Visitors GitHub Sponsors

Introduction

dcbench is an in-memory benchmark of .net compressors

Usage: dcbench

$ dotnet tool install --global dcbench
$ ./dcbench --help
dcbench: .net compressor benchmark tool 2023.11.11
Copyright (c) Choi Ikpil(ikpil@naver.com)
 - https://github.com/ikpil/DotCompressorBenchmark

Usage: dcbench [options] input-file

$ ./dcbench compression-corpus/silesia/silesia.tar

Supported compressors

If you have any compression libraries you'd like to add, please let me know.

Benchmark

NameComp. MB/sDecomp. MB/sCompr.SizeRatioFilenameFile size
memcpy7268.7815795.43211948544100.00silesia.tar211948544
lz4fast -0165.212423.6710088146147.60silesia.tar211948544
lz4hc -615.712406.497838637036.98silesia.tar211948544
lz4hc -123.452366.647726330236.45silesia.tar211948544
lz4hc -910.002356.097788512236.75silesia.tar211948544
lz4hc -325.752222.538134305338.38silesia.tar211948544
snappy218.09843.7410238021848.30silesia.tar211948544
fastlz -267.31365.9310014746747.25silesia.tar211948544
fastlz -166.13346.1410385623749.00silesia.tar211948544
zip -Fastest34.97378.537588701335.80silesia.tar211948544
zip -Optimal13.39398.106835212432.25silesia.tar211948544
brotli -Fastest87.12261.097344454834.65silesia.tar211948544
deflate -Fastest35.66210.667588690735.80silesia.tar211948544
gzip -Fastest35.48206.517588692535.80silesia.tar211948544
zlib -Fastest34.31163.117588691335.80silesia.tar211948544
brotli -Optimal20.37176.396421114030.30silesia.tar211948544
deflate -Optimal13.6386.246835201832.25silesia.tar211948544
gzip -Optimal13.7081.596835203632.25silesia.tar211948544
zlib -Optimal13.5274.306835202432.25silesia.tar211948544
lzma 22.1.1 -50.2424.074974398423.47silesia.tar211948544
lzma 22.1.1 -90.2324.064956456723.39silesia.tar211948544
lzma 22.1.1 -40.2323.945044481423.80silesia.tar211948544
lzma 22.1.1 -20.3121.385373000125.35silesia.tar211948544
lzma 22.1.1 -00.4018.045995375028.29silesia.tar211948544
bzip2 -11.9931.606053330328.56silesia.tar211948544
bzip2 -51.7830.285572325326.29silesia.tar211948544
bzip2 -91.6329.835453543825.73silesia.tar211948544
zstd -115.22801.165826635027.49silesia.tar211948544
zstd -151.59802.375717413026.98silesia.tar211948544
zstd -277.17716.976948449032.78silesia.tar211948544
zstd -811.09777.716002069628.32silesia.tar211948544
zstd -522.69704.056304198429.74silesia.tar211948544
zstd -187.04633.527341803934.64silesia.tar211948544
zstd -180.69694.445342319825.21silesia.tar211948544
zstd -220.42603.325244125524.74silesia.tar211948544