Zstd Compression

This test measures the time needed to compress/decompress a sample file (a FreeBSD disk image - FreeBSD-12.2-RELEASE-amd64-memstick.img) using Zstd compression with options for different compression levels / settings.

To run this test with the Phoronix Test Suite, the basic command is: phoronix-test-suite benchmark compress-zstd.

Project Site

github.com

Test Created

24 May 2018

Last Updated

14 May 2021

Test Maintainer

Michael Larabel 

Test Type

Processor

Average Install Time

1 Minute, 11 Seconds

Average Run Time

8 Minutes, 11 Seconds

Test Dependencies

C/C++ Compiler Toolchain

Accolades

60k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsZstd Compression Popularity Statisticspts/compress-zstd2018.052018.072018.092018.112019.012019.032019.052019.072019.092019.112020.012020.032020.052020.072020.092020.112021.012021.032021.052021.072021.092021.112022.012022.032022.052022.072022.098K16K24K32K40K
* Uploading of benchmark result data to OpenBenchmarking.org is always optional (opt-in) via the Phoronix Test Suite for users wishing to share their results publicly.
** Data based on those opting to upload their test results to OpenBenchmarking.org and users enabling the opt-in anonymous statistics reporting while running benchmarks from an Internet-connected platform.
*** Test profile page view reporting began March 2021.
Data current as of 3 October 2022.
3, Long Mode13.7%19, Long Mode19.6%816.6%8, Long Mode14.7%314.8%1920.7%Compression Level Option PopularityOpenBenchmarking.org

Revision History

pts/compress-zstd-1.5.0   [View Source]   Fri, 14 May 2021 13:28:48 GMT
Update against upstream Zstd 1.5.

pts/compress-zstd-1.3.0   [View Source]   Wed, 03 Mar 2021 16:48:52 GMT
Update against upstream Zstd 1.4.9, expose decompression speed, switch to FreeBSD img as input test, also add long mode options.

pts/compress-zstd-1.2.1   [View Source]   Fri, 04 Sep 2020 18:26:12 GMT
Zstd output parser fix per https://github.com/phoronix-test-suite/phoronix-test-suite/pull/467

pts/compress-zstd-1.2.0   [View Source]   Fri, 22 May 2020 07:18:54 GMT
Update against Zstd 1.4.5, transition to MB/s reporting with -b interface.

pts/compress-zstd-1.1.3   [View Source]   Fri, 03 Apr 2020 16:24:17 GMT
Update patch per https://github.com/phoronix-test-suite/test-profiles/issues/132

pts/compress-zstd-1.1.2   [View Source]   Mon, 02 Mar 2020 07:34:12 GMT
Build fix for some platforms via https://github.com/phoronix-test-suite/test-profiles/pull/128

pts/compress-zstd-1.1.1   [View Source]   Thu, 17 Jan 2019 10:59:33 GMT
Add Windows support.

pts/compress-zstd-1.1.0   [View Source]   Thu, 08 Nov 2018 20:33:01 GMT
Enforce threading for Zstd

pts/compress-zstd-1.0.0   [View Source]   Thu, 24 May 2018 10:22:41 GMT
Initial commit of a basic Zstandard compression benchmark.

Suites Using This Test

Compression Tests

C/C++ Compiler Tests

Multi-Core

CPU Massive

Server CPU Tests

Programmer / Developer System Benchmarks


Performance Metrics

Analyze Test Configuration:

Zstd Compression 1.5.0

Compression Level: 19 - Compression Speed

OpenBenchmarking.org metrics for this test profile configuration based on 1,680 public results since 14 May 2021 with the latest data as of 4 October 2022.

Below is an overview of the generalized performance for components where there is sufficient statistically significant data based upon user-uploaded results. It is important to keep in mind particularly in the Linux/open-source space there can be vastly different OS configurations, with this overview intended to offer just general guidance as to the performance expectations.

Component
Percentile Rank
# Compatible Public Results
MB/s (Average)
83rd
10
60 +/- 1
79th
17
53 +/- 2
Mid-Tier
75th
< 51
58th
31
37 +/- 3
54th
30
35 +/- 1
54th
10
35 +/- 2
54th
11
35 +/- 1
Median
50th
33
47th
10
31 +/- 1
46th
16
31 +/- 1
44th
9
30 +/- 1
40th
15
27 +/- 1
40th
10
27 +/- 1
40th
11
27 +/- 1
38th
22
26 +/- 2
37th
5
26 +/- 2
36th
27
25 +/- 1
34th
14
23
33rd
5
23 +/- 2
30th
4
21 +/- 1
26th
28
18 +/- 1
26th
10
18 +/- 1
Low-Tier
25th
< 18
22nd
19
18 +/- 1
22nd
3
17 +/- 1
21st
7
17 +/- 1
20th
10
16 +/- 1
17th
6
15 +/- 1
17th
6
15 +/- 1
16th
7
14 +/- 1
14th
6
13 +/- 2
OpenBenchmarking.orgDistribution Of Public Results - Compression Level: 19 - Compression Speed1657 Results Range From 0 To 115 MB/s10203040506070809010011012070140210280350

Based on OpenBenchmarking.org data, the selected test / test configuration (Zstd Compression 1.5.0 - Compression Level: 19 - Compression Speed) has an average run-time of 5 minutes. By default this test profile is set to run at least 3 times but may increase if the standard deviation exceeds pre-defined defaults or other calculations deem additional runs necessary for greater statistical accuracy of the result.

OpenBenchmarking.orgMinutesTime Required To Complete BenchmarkCompression Level: 19 - Compression SpeedRun-Time714212835Min: 1 / Avg: 4.45 / Max: 32

Based on public OpenBenchmarking.org results, the selected test / test configuration has an average standard deviation of 0.6%.

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsCompression Level: 19 - Compression SpeedDeviation246810Min: 0 / Avg: 0.57 / Max: 5

Does It Scale Well With Increasing Cores?

Yes, based on the automated analysis of the collected public benchmark data, this test / test settings does generally scale well with increasing CPU core counts. Data based on publicly available results for this test / test settings, separated by vendor, result divided by the reference CPU clock speed, grouped by matching physical CPU core count, and normalized against the smallest core count tested from each vendor for each CPU having a sufficient number of test samples and statistically significant data.

IntelAMDOpenBenchmarking.orgRelative Core Scaling To BaseZstd Compression CPU Core ScalingCompression Level: 19 - Compression Speed24681012162432641282.75.48.110.813.5

Notable Instruction Set Usage

Notable instruction set extensions supported by this test, based on an automatic analysis by the Phoronix Test Suite / OpenBenchmarking.org analytics engine.

Instruction Set
Support
Instructions Detected
SSE2 (SSE2)
Used by default on supported hardware.
 
COMISD MOVAPD CVTSI2SD MULSD DIVSD SUBSD CVTTSD2SI ADDSD MOVDQA MOVD PUNPCKLQDQ MOVDQU PSHUFD PMULUDQ PSRLDQ PADDQ SHUFPD PSUBQ PUNPCKHQDQ MINSD
Requires passing a supported compiler/build flag (verified with targets: sandybridge, skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VBROADCASTSD VEXTRACTF128 VZEROUPPER VINSERTF128
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VPBROADCASTQ VPBROADCASTD VPSLLVD VEXTRACTI128 VPBROADCASTW VPERMQ VPBROADCASTB VINSERTI128 VPERM2I128 VPERMD VPBLENDD
FMA (FMA)
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMADD132SD
Advanced Vector Extensions 512 (AVX512)
Requires passing a supported compiler/build flag (verified with targets: cascadelake, sapphirerapids).
 
(ZMM REGISTER USE)
The test / benchmark does honor compiler flag changes.
Last automated analysis: 17 January 2022

This test profile binary relies on the shared libraries libz.so.1, liblzma.so.5, libc.so.6.

Tested CPU Architectures

This benchmark has been successfully tested on the below mentioned architectures. The CPU architectures listed is where successful OpenBenchmarking.org result uploads occurred, namely for helping to determine if a given test is compatible with various alternative CPU architectures.

CPU Architecture
Kernel Identifier
Verified On
Intel / AMD x86 64-bit
x86_64
(Many Processors)
RISC-V 64-bit
riscv64
SiFive RISC-V, rv64imafdc, rv64imafdcsu
IBM POWER (PowerPC) 64-bit
ppc64le
POWER8E
Loongson LoongArch 64-bit
loongarch64
Loongson-3C5000L
ARMv7 32-bit
armv7l
ARMv7 Cortex-A72 4-Core
ARMv8 64-bit
arm64
Apple M1, Apple M1 Max, Apple M1 Pro, Apple M2
ARMv8 64-bit
aarch64
ARMv8 Cortex-A55 4-Core, ARMv8 Cortex-A55 6-Core, ARMv8 Cortex-A72, ARMv8 Cortex-A72 16-Core, ARMv8 Cortex-A72 4-Core, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 4-Core, ARMv8 Neoverse-N1 80-Core, ARMv8 Neoverse-V1, ARMv8 Neoverse-V1 4-Core, ARMv8 rev 0 8-Core, Ampere ARMv8 Neoverse-N1 160-Core, Ampere Altra ARMv8 Neoverse-N1 160-Core, Ampere eMAG ARMv8 32-Core, Apple M1, Apple M2, Phytium D2000, Phytium FT-2000