-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entropy coding test #42
Comments
You might want to try disabling qoi's index op entirely in the presence of external compression, from what I recall it's often detrimental to space-efficiency as it gets in the way of the compressor. |
Don't know what you're taking about. I used fast and already available tools, that are, at least some, part of regular browsers (gzip, gzip's huffman). They don't mean to be super 'tight' but, rather, fast. |
I mean that qoi's index op, |
I will check it. |
Entropy coding test
Inspired by this issue, and also this QOI issue I did some test of 'entropy coding' for qoi (compressing with regular compressors).
Used subset from benchmark images and default compression levels (except zstd, which was set to 12, to somewhat match gzip level 6.
Scripts used to make this test, in case someone wanted to test it themself are also attached.
That's the results: (gz-H is pure Huffman from deflate (`pigz -H`)), rans_jks is jkbonfield's rans_static)
sorted by ratio
sorted by ctime
sorted by dtime
As can be seen lz4 is inefficient in this application, which becomes clear when one realises that lz4 does not use any entropy coding, and the entropy coding, even pure prefix code like huffman from deflate, is what makes a difference in this contest. Lzma is very tight but still loses to bzip2, both in terms of compression and speed. Zstd turns out to be worse and slower than gzip, only decompression is slightly faster but it doesn't make up to it.
RANS static is on par with huffman compression though it's faster, specially with compression.
All in all, the best compressor (by ration) is bzip2, and by speed gzip/deflate, which beats png both, with compression (4%-5%) and with speed (~7 times).
qoiformat-bench-1b.zip
The text was updated successfully, but these errors were encountered: