Package: zstd
Version: 1.5.7+dfsg-2
Followup-For: Bug #1070168
X-Debbugs-Cc: [email protected]
I am no sure saying it is poor is best description. It is not poor even
in your report, but maybe there is some difference.
On my machine I do not really see a difference:
Fedora:
docker run --rm -it fedora zstd -v
*** Zstandard CLI (64-bit) v1.5.7, by Yann Collet ***
user@debian:~/tmp-live-build$ docker run --rm -it fedora zstd -b
3#Lorem ipsum : 10000000 -> 2983345 (x3.352), 213.4 MB/s, 901.7 MB/s
Debian testing:
*** Zstandard CLI (64-bit) v1.5.7, by Yann Collet ***
3#Lorem ipsum : 10000000 -> 2983345 (x3.352), 252.3 MB/s, 879.3 MB/s
This is on AMD Ryzen Threadripper 2950X (16-core cpu), 4 channel of DDR3
memory, and with schedutil cpu governor.
I did repeated tests (about 200 each), and compared distribution of
results. And yes, Debian is a bit slower, but not by a lot. median for
compression is about 2% slower on Debian, and median for decompression
is about 3% slower on Debian than in the Fedora container. Could be many
things, different compiler version, different security hardening
options, memory allocation scheme, compiler options, and zstd build
options itself.
I think you should provide more details, like CPU type, model,
frequency, memory type and speed, machine type, cpu frequency governor
used and cpu idle driver used. And also do repeated tests, on otherwise
idle system. I also do see you are using RT kernel - could you try
with standard kernel too?
To get my numbers I run something like this:
while true; do zstd -b; done
or
while true; do schedtool -F -p 99 -e zstd -b; done
if possible, and set performance cpu frequency governor first, then let
it run for some time to gether enough samples.
Then in gnuplot I did plot distributions:
gnuplot> set xrange [0:]
gnuplot> plot "<awk '{print $8;}' debian.txt | sort -n" u 1:($0 / 156.0) w l,
"<awk '{print $8;}' fedora.txt | sort -n" u 1:($0 / 132.0) w l
Where 156 and 132 are number of lines in each file to normalize data.
Change $8 to $10 to see decompression speeds.
-- System Information:
Debian Release: forky/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.17.8 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages zstd depends on:
ii libc6 2.41-12
ii libgcc-s1 15.2.0-7
ii liblz4-1 1.10.0-6
ii liblzma5 5.8.1-2
ii libstdc++6 15.2.0-7
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
zstd recommends no packages.
zstd suggests no packages.
-- no debconf information