Description
Describe the bug
For this specific file
tm29.zip (zipped, deflate)
, the compression rate, compression speed and decompression speed all erratically change for levels 1-22.
To Reproduce
Steps to reproduce the behavior:
- Download the tm29.zip file.
- Unzip the tm29.zip file for compression with zstd.
- Run zstd on the output file
tm29
:zstd tm29 -f -b1 -e22 -i5
- Observe statistics
Expected behavior
Compression rate, compression speed and compression rate should've (approximately) gone from highest to lowest according to the level used (-1 through -22)
Observed behavior
C:\Users\eurydice\Desktop\test>zstd tm29 -f -b1 -e22 -i5
1#tm29 : 268435456 -> 35034 (x7662.14), 10680.6 MB/s 10083.5 MB/s
2#tm29 : 268435456 -> 35032 (x7662.58), 11306.5 MB/s, 10025.0 MB/s
3#tm29 : 268435456 -> 35032 (x7662.58), 10236.6 MB/s, 10042.0 MB/s
4#tm29 : 268435456 -> 35032 (x7662.58), 10313.3 MB/s, 9960.2 MB/s
5#tm29 : 268435456 -> 3548566 (x75.65), 393.0 MB/s, 4591.9 MB/s
6#tm29 : 268435456 -> 3541741 (x75.79), 367.9 MB/s, 4833.4 MB/s
7#tm29 : 268435456 -> 4083117 (x65.74), 347.3 MB/s, 6353.3 MB/s
8#tm29 : 268435456 -> 4083117 (x65.74), 320.5 MB/s, 6299.9 MB/s
9#tm29 : 268435456 -> 4083117 (x65.74), 318.9 MB/s, 6253.8 MB/s
10#tm29 : 268435456 -> 2505849 (x107.12), 524.1 MB/s 8443.7 MB/s
11#tm29 : 268435456 -> 26535 (x10116.28), 3927.8 MB/s, 10093.3 MB/s
12#tm29 : 268435456 -> 26535 (x10116.28), 3947.6 MB/s, 9964.2 MB/s
13#tm29 : 268435456 -> 2823617 (x95.07), 237.6 MB/s, 7313.2 MB/s
14#tm29 : 268435456 -> 1797563 (x149.33), 192.3 MB/s, 8575.8 MB/s
15#tm29 : 268435456 -> 1078705 (x248.85), 115.6 MB/s, 9238.2 MB/s
16#tm29 : 268435456 -> 1583171 (x169.56), 55.5 MB/s, 8611.2 MB/s
17#tm29 : 268435456 -> 925769 (x289.96), 55.2 MB/s, 8898.8 MB/s
18#tm29 : 268435456 -> 927815 (x289.32), 55.1 MB/s, 8936.6 MB/s
19#tm29 : 268435456 -> 290902 (x922.77), 62.3 MB/s, 10052.7 MB/s
20#tm29 : 268435456 -> 290902 (x922.77), 62.0 MB/s, 10097.7 MB/s
21#tm29 : 268435456 -> 92431 (x2904.17), 42.0 MB/s, 10204.0 MB/s
22#tm29 : 268435456 -> 228787 (x1173.30), 66.9 MB/s, 10252.8 MB/s
Compression rate: 5 (huge regression), 11 (huge improvement), 13 (regression), 21 (improvement)
Compression speed: 5 (huge regression), 11 (improvement), 13 (regression)
Decompression speed: 5 (regression), 10 (improvement), 11 (improvement)
Desktop (please complete the following information):
- OS: Windows 10 x64
- Version: 21H2
- Compiler: none (prebuilt binary from releases)
- Other relevant hardware specs AMD Ryzen 7 4800H 16 core
Zstd version:
C:\Users\eurydice>zstd --version
*** Zstandard CLI (64-bit) v1.5.6, by Yann Collet ***
Relevant information:
The given file tm29 is a compressor benchmark file with hugely repetitive ab
patterns and does not relate to real data.