FLAC Audio Encoding

This test times how long it takes to encode a sample WAV file to FLAC audio format ten times using the --best preset settings.

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

Project Site

xiph.org

Source Repository

github.com

Test Created

6 December 2010

Last Updated

22 October 2022

Test Maintainer

Michael Larabel 

Test Type

Average Install Time

39 Seconds

Average Run Time

1 Minute, 55 Seconds

Test Dependencies

C/C++ Compiler Toolchain

Accolades

300k+ Downloads + 10k+ Public Benchmark Results

Supported Platforms


Public Result Uploads *Reported Test Completions **Reported Installs **Test Profile Page Views ***OpenBenchmarking.orgEventsFLAC Audio Encoding Popularity Statisticspts/encode-flac2010.122011.052011.102012.032012.082013.012013.062013.112014.042014.092015.022015.072015.122016.052016.102017.032017.082018.012018.062018.112019.042019.092020.022020.072020.122021.052021.102022.032022.082023.012023.062023.112024.042024.0980K160K240K320K400K
* 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 updated weekly as of 2 December 2024.

Revision History

pts/encode-flac-1.8.1   [View Source]   Sat, 22 Oct 2022 07:35:52 GMT
Update against FLAC 1.4.2 for latest build system fixes / compiler improvemnts.

pts/encode-flac-1.8.0   [View Source]   Fri, 09 Sep 2022 10:52:08 GMT
Update against new upstream FLAC 1.4 release. Also new release takes care of FLAC AArch64 issue noted in: https://github.com/phoronix-test-suite/phoronix-test-suite/issues/668

pts/encode-flac-1.7.0   [View Source]   Tue, 28 Sep 2021 16:05:54 GMT
Update against (belated) FLAC 1.3.3 upstream release and add system dependency check for Ogg header.

pts/encode-flac-1.6.0   [View Source]   Sun, 04 Mar 2018 09:38:58 GMT
Update against FLAC 1.3.2 from 1.3.1, add Windows support.

pts/encode-flac-1.5.0   [View Source]   Thu, 27 Nov 2014 14:14:40 GMT
Change encode-flac run times for audio conversion to three due to fast run times on modern CPUs.

pts/encode-flac-1.4.0   [View Source]   Thu, 27 Nov 2014 14:09:10 GMT
Update encode-flac against new upstream FLAC 1.3.1 release.

pts/encode-flac-1.3.0   [View Source]   Fri, 21 Jun 2013 14:40:13 GMT
Update against upstream Xiph.Org FLAC 1.3.0.

pts/encode-flac-1.2.0   [View Source]   Mon, 06 Dec 2010 14:41:03 GMT
Initial import into OpenBenchmarking.org

Suites Using This Test

Audio Encoding

C/C++ Compiler Tests

Encoding

CPU Massive

Creator Workloads

Single-Threaded


Performance Metrics

Analyze Test Configuration:

FLAC Audio Encoding 1.4

WAV To FLAC

OpenBenchmarking.org metrics for this test profile configuration based on 1,666 public results since 9 September 2022 with the latest data as of 29 November 2024.

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
Seconds (Average)
94th
6
9
Mid-Tier
75th
> 13
72nd
4
13
66th
9
14 +/- 1
58th
14
15 +/- 2
55th
18
16 +/- 1
55th
6
16 +/- 2
54th
8
17 +/- 2
Median
50th
18
44th
7
20 +/- 2
42nd
22
20 +/- 2
41st
6
20 +/- 1
36th
8
22 +/- 1
33rd
4
23 +/- 1
33rd
3
23 +/- 1
30th
3
25 +/- 3
29th
3
26 +/- 3
27th
3
29 +/- 2
Low-Tier
25th
> 31
25th
6
31 +/- 1
19th
4
39 +/- 2
8th
4
80 +/- 11
3rd
8
177 +/- 1
1st
5
443 +/- 5
OpenBenchmarking.orgDistribution Of Public Results - WAV To FLAC1666 Results Range From 2 To 2198 Seconds249961431902372843313784254725195666136607077548018488959429891036108311301177122412711318136514121459150615531600164716941741178818351882192919762023207021172164221130060090012001500

Based on OpenBenchmarking.org data, the selected test / test configuration (FLAC Audio Encoding 1.4 - WAV To FLAC) has an average run-time of 4 minutes. By default this test profile is set to run at least 5 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 BenchmarkWAV To FLACRun-Time714212835Min: 1 / Avg: 3.84 / Max: 32

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsWAV To FLACDeviation510152025Min: 0 / Avg: 1.19 / Max: 18

Does It Scale Well With Increasing Cores?

No, based on the automated analysis of the collected public benchmark data, this test / test settings does not 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 BaseFLAC Audio Encoding CPU Core ScalingWAV To FLAC24681012141624640.46040.92081.38121.84162.302

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.
 
MOVDQA MOVAPD ADDSD MULSD CVTSI2SD SUBSD MOVUPD UNPCKLPD MULPD ADDPD DIVSD DIVPD UCOMISD SQRTSD PUNPCKLQDQ MOVD ANDPD CVTTSD2SI ANDNPD CMPNLESD ORPD MOVDQU COMISD PSHUFD PADDQ XORPD CVTSD2SS CVTSS2SD PSRLDQ PSLLDQ CVTDQ2PS CVTPS2PD UNPCKHPD MOVHPD SHUFPD CVTPD2PS MAXSD PMULUDQ MINSD SUBPD PSHUFLW CVTDQ2PD
SSSE3 (SSSE3)
Used by default on supported hardware.
 
PABSD PALIGNR
Used by default on supported hardware.
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VZEROUPPER VBROADCASTSS VINSERTF128 VPERM2F128 VPERMILPS VEXTRACTF128 VPERMILPD VBROADCASTSD
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VPBROADCASTD VPERMD VEXTRACTI128 VINSERTI128 VPERMQ VPERM2I128 VPGATHERQQ VPBROADCASTQ VPERMPD VPGATHERQD VPBROADCASTW
FMA (FMA)
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMADD213PD VFMADD213SD VFMADD231PD VFMADD132PD VFMADD231SD VFMADD132SD VFMSUB231SS VFMADD231SS VFMSUB231SD VFNMADD231SD VFNMADD132SD VFNMADD132SS VFMADD132SS VFNMADD231SS VFNMADD132PD
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 November 2022

This test profile binary relies on the shared libraries libFLAC.so.12, libm.so.6, libc.so.6, libogg.so.0.

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, Spacemit X60, rv64imafdcvsu
Loongson LoongArch 64-bit
loongarch64
Loongson-3A5000, Loongson-3A6000-HV
Intel / AMD x86 32-bit
i686
(Many Processors)
ARMv7 32-bit
armv7l
ARMv7 Cortex-A53 4-Core, ARMv7 Cortex-A7 4-Core, ARMv7 Cortex-A72 4-Core, ARMv7 rev 3 4-Core
ARMv6 32-bit
armv6l
ARMv7
ARMv8 64-bit
arm64
Apple M1, Apple M2, Apple M2 Max, Apple M4
ARMv8 64-bit
aarch64
ARMv8, ARMv8 Cortex-A53 4-Core, ARMv8 Cortex-A55 4-Core, ARMv8 Cortex-A72 4-Core, ARMv8 Cortex-A72 6-Core, ARMv8 Cortex-A73 2-Core, ARMv8 Cortex-A76 4-Core, ARMv8 Cortex-A78E 6-Core, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 16-Core, ARMv8 Neoverse-N1 160-Core, ARMv8 Neoverse-V1, ARMv8 Neoverse-V2 72-Core, Ampere ARMv8 Neoverse-N1 256-Core, AmpereOne 192-Core, Apple M1, Apple M2, Phytium D2000, Qualcomm, Rockchip ARMv8 Cortex-A76 4-Core, Rockchip ARMv8 Cortex-A76 6-Core, rk1-mainline-emmc, rk1-mainline-nvme, rk1-rok-emmc

Recent Test Results

OpenBenchmarking.org Results Compare

17 Systems - 14 Benchmark Results

Intel Celeron G540 - American Megatrends C69VVR10 - Intel 2nd Generation Core DRAM

Debian 11 - 5.10.0-23-amd64 - 1.0.2

17 Systems - 14 Benchmark Results

Intel N150 - AZW EQ - Intel Alder Lake-N PCH

Debian 12 - 6.1.0-28-amd64 - GCC 12.2.0

2 Systems - 26 Benchmark Results

Intel Core i7-3820QM - EUROCOM Racer2.0 - Intel Ivy DRAM

Fedora 18 - 3.4.0-0.rc7.git0.1.fc18.x86_64 - KDE 4.8.3

17 Systems - 14 Benchmark Results

Intel N100 - (5.27 BIOS) - Intel Alder Lake-N PCH

Debian 12 - 6.1.0-23-amd64 - GCC 12.2.0

17 Systems - 14 Benchmark Results

Intel N100 - (5.27 BIOS) - Intel Alder Lake-N PCH

Debian 12 - 6.1.0-23-amd64 - GCC 12.2.0

17 Systems - 14 Benchmark Results

Intel N150 - AZW EQ - Intel Alder Lake-N PCH

Debian 12 - 6.1.0-28-amd64 - GCC 12.2.0

18 Systems - 14 Benchmark Results

Intel N100 - (5.27 BIOS) - Intel Alder Lake-N PCH

Debian 12 - 6.1.0-23-amd64 - GCC 12.2.0

17 Systems - 14 Benchmark Results

Intel N97 - HARDKERNEL ODROID-H4 v1.0 - Intel Device 54ef

Debian 12 - 6.1.0-20-amd64 - GCC 12.2.0

17 Systems - 14 Benchmark Results

Intel N100 - (5.27 BIOS) - Intel Alder Lake-N PCH

Debian 12 - 6.1.0-23-amd64 - GCC 12.2.0

17 Systems - 14 Benchmark Results

Intel N100 - (5.27 BIOS) - Intel Device 54ef

Debian 12 - 6.1.0-21-amd64 - GCC 12.2.0

17 Systems - 14 Benchmark Results

Intel N100 - (5.27 BIOS) - Intel Alder Lake-N PCH

Debian 12 - 6.1.0-23-amd64 - GCC 12.2.0

21 Systems - 3 Benchmark Results

2 x Intel Xeon E5-2620 v2 - ASUS Z9PE-D8 WS - Intel Xeon E7 v2

CentOS Stream 9 - 5.14.0-480.el9.x86_64 - X Server

1 System - 1 Benchmark Result

ARMv8 Cortex-A72 - Radxa ROCK 4C+ - 4096MB

Ubuntu 20.04 - 4.4.194-11-rk3399-rockchip-g1bb08d49cc40 - GCC 9.4.0

1 System - 1 Benchmark Result

Intel Pentium G3220 - ASUS All H81M-C - Intel 4th Gen Core DRAM

Debian 12 - 6.1.0-10-amd64 - Xfce 4.18

1 System - 1 Benchmark Result

AMD Ryzen 9 9950X 16-Core - MSI MAG X670E TOMAHAWK WIFI - AMD Device 14d8

Arch rolling - 6.11.9-arch1-1 - KDE Plasma 6.2.3

Most Popular Test Results

OpenBenchmarking.org Results Compare

1 System - 64 Benchmark Results

Intel Core Ultra 7 256V - ASUS UX5406SA - 8 x 2048MB 8533MHz Samsung

Microsoft Windows 11 Home Build 26100 - 10.0.26100.1742 - 32.0.101.5730

3 Systems - 109 Benchmark Results

AMD Ryzen 7 7840HS - Framework FRANMZCP07 - 2 x 8192MB 5600MHz A-DATA AD5S56008G-B

Microsoft Windows 11 Home Build 22631 - 10.0.22631.3296 - 31.0.22024.15004

2 Systems - 21 Benchmark Results

ARMv8 Cortex-A53 - BCM2835 Raspberry Pi 3 Model B Rev 1.2 - 948MB

Ubuntu 22.10 - 5.19.0-1006-raspi - GCC 12.2.0

2 Systems - 705 Benchmark Results

2 x AMD EPYC 7713 64-Core - AMD DAYTONA_X - AMD Starship

Ubuntu 22.04 - 5.15.0-47-generic - GNOME Shell 42.4

3 Systems - 413 Benchmark Results

AMD Ryzen 7 7840HS - Framework Laptop 16 - AMD Device 14e8

Ubuntu 24.04 - 6.10.0-061000rc4daily20240621-generic - GNOME Shell 46.0

2 Systems - 286 Benchmark Results

ARMv8 Cortex-A72 - BCM2835 Raspberry Pi 400 Rev 1.0 - Broadcom BCM2711

Debian 11 - 5.15.84-v8+ - LXDE

9 Systems - 113 Benchmark Results

AMD Ryzen 7 5700G - ASUS ROG CROSSHAIR VIII HERO - AMD Renoir

Ubuntu 22.04 - 6.0.0-060000rc1daily20220820-generic - GNOME Shell 42.2

2 Systems - 334 Benchmark Results

2 x AMD EPYC 7601 32-Core - Dell 02MJ3T - AMD 17h

Ubuntu 22.04 - 5.15.0-40-generic - GNOME Shell 42.2

2 Systems - 361 Benchmark Results

AMD Ryzen Threadripper 3960X 24-Core - MSI Creator TRX40 - AMD Starship

Ubuntu 22.04 - 5.19.0-051900rc7-generic - GNOME Shell 42.2

3 Systems - 270 Benchmark Results

AMD EPYC 7F32 8-Core - ASRockRack EPYCD8 - AMD Starship

Debian 11 - 5.10.0-10-amd64 - GNOME Shell 3.38.6

4 Systems - 286 Benchmark Results

ARMv8 Cortex-A72 - BCM2835 Raspberry Pi 400 Rev 1.0 - Broadcom BCM2711

Debian 11 - 5.15.84-v8+ - LXDE

2 Systems - 831 Benchmark Results

Intel Core Ultra 7 155H - MTL Coral_MTH - Intel Device 7e7f

Ubuntu 23.10 - 6.7.0-060700rc5-generic - GNOME Shell 45.1

18 Systems - 442 Benchmark Results

AMD Ryzen 9 7950X3D 16-Core - ASUS ROG STRIX X670E-E GAMING WIFI - AMD Device 14d8

Ubuntu 24.04 - 6.10.0-061000rc2-generic - GNOME Shell 46.0

3 Systems - 184 Benchmark Results

AMD Ryzen 9 3900XT 12-Core - MSI MEG X570 GODLIKE - AMD Starship

Ubuntu 22.04 - 5.15.0-47-generic - GNOME Shell 42.2

2 Systems - 98 Benchmark Results

AMD Ryzen Threadripper 7980X 64-Cores - System76 Thelio Major - AMD Device 14a4

Pop 22.04 - 6.6.6-76060606-generic - GNOME Shell 42.5

Find More Test Results