Zstd cpu benchmark (btrfs like)

Posted by Spirited_Milk_6580@reddit | linux | View on Reddit | 36 comments

Hello everyone.
I'm testing the speed of the zstd algorithm with parameters similar to the btrfs.
I'm currently collecting speed data on various processors and would like to ask you to run a test and share the results.

For accurate testing, you need to prepare a test file with random data.
sudo dd if=/dev/urandom of=./tst.bin bs=1M count=128 status=progress

Then run the benchmark.
zstd -b1 -e22 -B128KB -T0 tst.bin

I'm especially interested in older processors like the Pentium 4, Celeron D, Atom N270, and so on. I want to know how effective compression is on older computers.

Let's start with my results.
Level | Comp. speed | Decomp. speed
AMD Athlon 2 X2 280 3.6GHz
1 | 1362.5 MB/s | 3085.5 MB/s
2 | 1194.8 MB/s | 3114.5 MB/s
3 | 820.2 MB/s | 3102.0 MB/s
4 | 634.3 MB/s | 3110.6 MB/s
5 | 653.8 MB/s | 3099.3 MB/s
6 | 652.3 MB/s | 3112.0 MB/s
7 | 647.3 MB/s | 3102.8 MB/s
8 | 654.0 MB/s | 3115.6 MB/s
9 | 662.6 MB/s | 3097.3 MB/s
10 | 643.4 MB/s | 3110.1 MB/s
11 | 112.5 MB/s | 3106.2 MB/s
12 | 106.6 MB/s | 3111.3 MB/s
13 | 14.6 MB/s | 3112.4 MB/s
14 | 8.14 MB/s | 3115.7 MB/s
15 | 7.92 MB/s | 3109.0 MB/s
16 | 7.91 MB/s | 3112.8 MB/s
17 | 7.91 MB/s | 3115.8 MB/s
18 | 7.91 MB/s | 3114.7 MB/s
19 | 4.02 MB/s | 3115.1 MB/s
20 | 4.02 MB/s | 3111.1 MB/s
21 | 4.02 MB/s | 3116.1 MB/s
22 | 4.02 MB/s | 3115.1 MB/s

Intel Pentium P6200 2.13GHz
1 | 1293.4 MB/s | 2812.5 MB/s
2 | 1246.2 MB/s | 2818.9 MB/s
3 | 1095.2 MB/s | 2813.9 MB/s
4 | 874.5 MB/s | 2819.7 MB/s
5 | 676.8 MB/s | 2814.6 MB/s
6 | 677.5 MB/s | 2820.1 MB/s
7 | 670.0 MB/s | 2813.2 MB/s
8 | 670.8 MB/s | 2819.2 MB/s
9 | 659.1 MB/s | 2810.6 MB/s
10 | 588.3 MB/s | 2816.9 MB/s
11 | 119.2 MB/s | 2811.1 MB/s
12 | 118.3 MB/s | 2816.3 MB/s
13 | 12.9 MB/s | 2817.2 MB/s
14 | 9.03 MB/s | 2818.5 MB/s
15 | 9.18 MB/s | 2817.8 MB/s
16 | 9.22 MB/s | 2816.8 MB/s
17 | 9.22 MB/s | 2815.7 MB/s
18 | 9.22 MB/s | 2819.1 MB/s
19 | 4.70 MB/s | 2817.5 MB/s
20 | 4.70 MB/s | 2816.4 MB/s
21 | 4.70 MB/s | 2817.4 MB/s
22 | 4.70 MB/s | 2816.8 MB/s