Better HN
topnewbestaskshowjobs
Log inSign up

powturbo

69 karma · joined Oct 29, 2014 (12y ago) · 120 submissions

Submissions

comment 13h ago · link · parent

No, mzstd is slower

Quick test using TurboBench [1]:

   C Size  ratio%      C MB/s    D MB/s Rank    Name            File

 66132683  31.20%      277.53   1217.35  33     mzstd 3         silesia.tar

 66217008  31.24%      295.08   1467.05  29     zstd 3          silesia.tar
Download TurboBench and test both yourself with your data:

[1] https://github.com/powturbo/TurboBench

comment 1w ago · link · parent

Lz0 is now integrated into TurboBench [1], including benchmarks with lz0 compact [2] for memory contrained systems.

[1] https://github.com/powturbo/TurboBench

[2] https://github.com/powturbo/TurboBench/blob/master/turbobenc...

3.

ZLIB-TURBO: Zlib, faster, and byte for byte the same(github.com ↗)

1 points · by powturbo · 1mo ago · 1 comment

4.

Show HN: TurboBench, the Compression Lie Detector, 100 Codecs, Daily Update(github.com ↗)

5 points · by powturbo · 2mo ago · discuss

comment 2mo ago · link · parent

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 The only benchmark that includes 100+ popular, latest, and fastest compressors (LZ77, Rolz, BWT, Context Mixing, Entropy Coders, and more). 100% in-memory testing — no disk I/O to skew your results. Supports multiple files, recursive directories, and smart concatenation of small files into multiblock tests. Built to avoid common pitfalls like cache scenarios and throttling found in other tools. Unlock peak performance — TurboBench reduces throttling by intelligently controlling the CPU frequency Automatic sorting, updating, and merging of result files. A nightly github release is created automatically whenever submodules change. Creates a separate result file (file@SET.tbb) for each compressor set TurboBench rank aggregation crowns the top compression libraries with — see who's king!

6.

Show HN:TurboBench: Data Compression Benchmark. The Compression Lie Detector(github.com ↗)

2 points · by powturbo · 2mo ago · 1 comment

comment 3y ago · link · parent

Try TurboRC using 16-bits format: https://github.com/powturbo/Turbo-Range-Coder

comment 3y ago · link · parent

Thank for your analyse. It seems it's a corner case, benchmarking a base64 encoded random file is not a typical case. igzip has no more advantage above libdeflate. It has only fast compression at the levels 0,1,2 but with mediocre compression ratio.

comment 3y ago · link · parent

EDIT: I've seen the file you're referencing is 4Gi-Base64. This file is not very compressible (75% with gzip). It's possible that igzip is simply storing the file or some parts of it without compression. This explain why it can be faster that libdeflate, because in this case igzip is using memcpy at decompression.

comment 3y ago · link · parent

Sorry, a digit was missing, but now https://github.com/powturbo/TurboBench/issues/43

Well, a correct benchmarking is not done with special data, but with datasets that represent a large set of distributions. Such datasets are for ex. einwik8/9 for text, silesia for a mixed dataset. As a corner case example, RLE-compressible data is not representative for benchmarking compression libraries.

If you provide a link for a dataset 10-100MB, I can verify your claims, because I'm not aware of a dataset where igzip is 2 times faster than libdeflate. In TurboBench there is no I/O or other overhead involved, additionally it's single threaded. It's also possible that you're comparing two different CLI programs, one (igzip) I/O optimized and the other as a simple CLI.

comment 3y ago · link · parent

libdeflate compress better and has faster decompression than igzip.

See the silesia single core in-memory benchmark here [1] comparing zlib,libdeflate,igzip,...

https://github.com/powturbo/TurboBench/issues/4

comment 3y ago · link · parent

file html8 : 100MB random html pages from a 1m Alexa Top sites corpus.

Number of pages = 1178

Average length = 84886 bytes

CPU: AMD 7840HS 3.8-5.1GHZ

13.

Web Content Compression Benchmark.zlib brotli zstd zlib_ng libdeflate igzip,...(github.com ↗)

2 points · by powturbo · 3y ago · 1 comment

comment 3y ago · link · parent

You can use TurboBench [1] to benchmark libdeflate against zlib, igzip, zlib-ng and others.

Download TurboBench from Releases [2]

Here Some Benchmarks:

- https://github.com/zlib-ng/zlib-ng/issues/1486

- https://github.com/powturbo/TurboBench/issues/43

[1] https://github.com/powturbo/TurboBench

[2] https://github.com/powturbo/TurboBench/releases

comment 3y ago · link · parent

** Cython bindings for Turbo Base64 [1] **

- 20-30x faster than the standard library

- Benchmarks faster than any other C base64 library

- Fastest implementation of AVX, AVX2, and AVX512 base64 encoding

- No other dependencies

[1] - https://github.com/powturbo/Turbo-Base64

16.

Show HN: The fastest Turbo-Base64 for Python: 20-30x faster than the std library(github.com ↗)

2 points · by powturbo · 3y ago · 1 comment

comment 3y ago · link · parent

You can use TurboBench [1] to benchmark igzip, zlib-ng and others.

Download TurbBench from Releases [2]

Here Some Benchmarks:

- https://github.com/zlib-ng/zlib-ng/issues/1486

- https://github.com/powturbo/TurboBench/issues/43

[1] https://github.com/powturbo/TurboBench

[2] https://github.com/powturbo/TurboBench/releases

comment 3y ago · link · parent

Yes, especially SIMD Neon where gcc producing horrible Neon code for all versions < gcc-12 even by using simd intrinsics. From version 12 gcc is at same level as clang.

You can try it : https://github.com/powturbo/Turbo-Base64

comment 3y ago · link · parent

> Obviously it's not impossible, since it's happening on my laptop. Well, zstd cli is more optimized for multithreading and asynchrounous i/o. zstd is overlapping cpu decompression with reading/writing. Additionally zstd compressed data is more dense. It's possible that on your notebook you have lz4 decompression including i/o slower that zstd. This is not the way lz are compared in general. Otherwise nobody will use lz4 anymore.

> I haven't tried TurboBench, but this is what I get when running the built-in lz4 and zstd benchmarks You can see, even on your machine lz4 is faster than zstd. Now it's obvious that asynchrounous i/o + multithreading is making the difference in the cli case.

> However, I don't understand exactly what this metric means. Does it mean that lz4 can ingest the input at ~4 GB/s or that it produces the output at ~4 GB/s? In data compression the metrics are always relative to the original uncompressed size.

> But in any case, what matters to me as a user is how quickly I can compress and decompress a file. Well, this depends of the use case. I'm using 7zip (GUI) and it's working fine for me.

It's very hard to make benchmarks when multithreading or i/o is involved. You'll get often different results on different hardware configurations and the number of threads.

comment 3y ago · link · parent

"In memory" means without i/o (disk,ssd,network), only in RAM. Streaming means compressing/decompressing in chunks and can also be "IN memory".

comment 3y ago · link · parent

No, No and No. It's algorithmically impossible that zstd is decompressing faster than lz4 by using the same environment.

You are comparing the zstd with asynchrounous I/O + multithreading against a single thread simple lz4 cli.

Additionally you're using some exotic and not representative hardware.

In theory, the only single thread decompression case where zstd can beats lz4 is when you have slow (reading) i/o.

lz4 & zstd are mostly used as libraries and real benchmarks are not considering I/O or multithreading.

This is what I'm getting with TurboBench & enwik9. lz4 decompressing 2,8x faster than zstd.

      C Size  ratio%     C MB/s     D MB/s   Name            
   356828015    35.7     400.71    1557.59   zstd 1 
   416874817    41.7     312.31    1967.66   lzav         
   509199084    50.9     630.78    4395.08   lz4 1           
Download TurboBench [1] from [2] and make the tests on your machine.

[1] - https://github.com/powturbo/TurboBench

[2] - https://github.com/powturbo/TurboBench/releases

comment 3y ago · link · parent

lz4 is ALWAYS decompressing faster (> 2x) thand zstd

comment 3y ago · link · parent

LZAV now integrated into TurboBench [1]

Download TurboBench for windows from releases [2]

Lenovo IdeaPad 5 Pro - Ryzen 6600HS - DDR5 6400 - gcc-13.1

File: silesia.tar 220MB (Mixed text/binary)

    C Size  ratio%     C MB/s     D MB/s        Name     
  77885207    36.7      43.20    4479.24        lz4 9          
  81343184    38.4     123.17    4299.68        lz4 3 
  85664894    40.4     324.11    5171.12        lzturbo 11 
  88672448    41.8     435.96    2769.77        lzav v1.3
  99553305    47.0     914.25    5425.54        lzturbo 10
 100883728    47.6     813.76    4667.85        lz4 1
 211948544   100.0   16032.92   16023.24        memcpy
lzturbo (closed source) included as reference

[1] https://github.com/powturbo/TurboBench

[2] https://github.com/powturbo/TurboBench/releases

comment 3y ago · link · parent

see also Discussion with a brotli developer [2] and "Chrome: Implement zstd content-encoding" [3] :

[1] - Benchmark App: https://github.com/powturbo/TurboBench

[2] - https://twitter.com/powturbo/status/1678333893626195969

[3] - https://bugs.chromium.org/p/chromium/issues/detail?id=124697...

25.

Show HN: TurboBench: Dynamic/Static web content compression benchmark(github.com ↗)

2 points · by powturbo · 3y ago · 1 comment

26.

Bug Forces Intel to Halt Some Xeon Sapphire Rapids Shipments(tomshardware.com ↗)

1 points · by powturbo · 3y ago · discuss

comment 3y ago · link · parent

Thanks for the confirmaation. If your query engine can't exploit fine grained access, then general purpose compressors like lz4 or zstd with large compressed blocks are the better choice for numerical data, especially in combination with transpose (+delta).

comment 3y ago · link · parent

Gorilla [1] and Gorilla based algos [2] are simply overrated.

Store these values as 32 bits floats instead of 64 bits and you get instant 50% reduction without any compression.

This is valid for allmost all time series data.

Most of time series databases (ex. DuckDB) are storing floating point data as 64 bits.

They are reporting some extraordinary compression ratio by using a gorilla/chimp like algorithm.

However as shown in this benchmark, lot of time series data (ex. temparature, climate data, stocks,...)

don't have more than 1 or 2 fixed decimal digits and can be stored losslessly in 16/32 bits integers.

Integer compression [1] algorithms can then be used, which results in significant compression ratio and several times faster than the gorilla like algorithms.

TurboGorilla, the fastest Gorilla (or chimp) based algo in c, cannot exceed 1GB/s in decompression, wherea TurboPFor is in the order of 10Gb/s, TurboBitByte is >100Gb/s.

-[1] https://github.com/powturbo/TurboPFor-Integer-Compression

-[2] https://www.vldb.org/pvldb/vol8/p1816-teller.pdf

-[3] https://www.vldb.org/pvldb/vol15/p3058-liakos.pdf

29.

Show HN: Time Series Benchmark TurboPFor,TurboFloat,TurboFloat LzX,TurboGorilla(github.com ↗)

3 points · by powturbo · 3y ago · 3 comments

1234