Timed LLVM Compilation

This test times how long it takes to compile/build the LLVM compiler stack.

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

Project Site

llvm.org

Source Repository

github.com

Test Created

27 August 2017

Last Updated

22 March 2023

Test Maintainer

Michael Larabel 

Test Type

Processor

Average Install Time

2 Seconds

Average Run Time

54 Minutes, 13 Seconds

Test Dependencies

C/C++ Compiler Toolchain + CMake + Python

Accolades

100k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsTimed LLVM Compilation Popularity Statisticspts/build-llvm2017.082017.112018.022018.052018.082018.112019.022019.052019.082019.112020.022020.052020.082020.112021.022021.052021.082021.112022.022022.052022.082022.112023.022023.052023.082023.112024.0211K22K33K44K55K
* 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 17 March 2024.
Ninja60.5%Unix Makefiles39.5%Build System Option PopularityOpenBenchmarking.org

Revision History

pts/build-llvm-1.5.0   [View Source]   Wed, 22 Mar 2023 11:12:53 GMT
Update against LLVM 16.0 to fix GCC 13 build issues.

pts/build-llvm-1.4.0   [View Source]   Fri, 01 Oct 2021 14:29:57 GMT
Update against LLVM 13.0 upstream. Also fix: https://github.com/phoronix-test-suite/openbenchmarking/issues/15

pts/build-llvm-1.3.1   [View Source]   Fri, 16 Apr 2021 08:04:57 GMT
Fix possible shell script issue based on the interpreter.

pts/build-llvm-1.3.0   [View Source]   Fri, 16 Apr 2021 05:40:02 GMT
Update against LLVM 12.0 upstream, also add build system option for those wanting Ninja builds.

pts/build-llvm-1.2.1   [View Source]   Sat, 12 Sep 2020 16:11:15 GMT
Drop Windows support as it seems to have problems running now.

pts/build-llvm-1.2.0   [View Source]   Tue, 24 Mar 2020 14:28:14 GMT
Update against LLVM 10.0.

pts/build-llvm-1.1.0   [View Source]   Wed, 15 Aug 2018 08:56:02 GMT
Update against LLVM 6.0.1 upstream as LLVM 4.0 these days seems to be having build problems under newer compilers.

pts/build-llvm-1.0.1   [View Source]   Thu, 08 Mar 2018 19:17:13 GMT
Windows support.

pts/build-llvm-1.0.0   [View Source]   Sun, 27 Aug 2017 20:32:05 GMT
Initial commit of a timed LLVM compilation test profile.

Suites Using This Test

Timed Code Compilation

C/C++ Compiler Tests

Multi-Core

CPU Massive

Server CPU Tests

Programmer / Developer System Benchmarks


Performance Metrics

Analyze Test Configuration:

Timed LLVM Compilation 16.0

Build System: Ninja

OpenBenchmarking.org metrics for this test profile configuration based on 1,123 public results since 22 March 2023 with the latest data as of 18 March 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)
86th
9
137 +/- 12
78th
22
174 +/- 9
Mid-Tier
75th
> 180
74th
6
183 +/- 1
73rd
4
186 +/- 12
64th
5
263 +/- 11
64th
19
264 +/- 2
57th
13
303 +/- 7
52nd
14
329 +/- 20
Median
50th
336
40th
8
436 +/- 1
40th
8
442 +/- 8
38th
3
473 +/- 1
38th
5
486 +/- 44
38th
3
494 +/- 7
33rd
16
552 +/- 22
30th
4
682 +/- 27
28th
13
701 +/- 27
27th
5
751 +/- 60
Low-Tier
25th
> 865
25th
4
888 +/- 8
24th
3
918 +/- 84
23rd
6
940 +/- 44
23rd
4
964 +/- 1
22nd
10
981 +/- 1
20th
6
1075 +/- 110
20th
4
1088 +/- 92
20th
7
1098 +/- 56
19th
3
1152 +/- 1
18th
4
1181 +/- 59
17th
9
1232 +/- 29
15th
10
1273 +/- 140
15th
8
1305 +/- 21
14th
5
1342 +/- 1
13th
3
1474 +/- 11
12th
3
1517 +/- 7
11th
3
1620 +/- 6
11th
3
1639 +/- 2
10th
18
1711 +/- 32
9th
3
1903 +/- 1
8th
3
1989 +/- 13
8th
5
2024 +/- 26
8th
3
2113 +/- 11
7th
8
2139 +/- 196
6th
3
2870 +/- 7
5th
5
2966 +/- 147
5th
4
3077 +/- 132
3rd
4
5340 +/- 5
OpenBenchmarking.orgDistribution Of Public Results - Build System: Ninja1109 Results Range From 81 To 50842 Seconds8110972113312941455161617771938209922510241112571227313289143051532116337173531836919385204012141722433234492446525481264972751328529295453056131577325933360934625356413665737673386893970540721417374275343769447854580146817478334884949865508812004006008001000

Based on OpenBenchmarking.org data, the selected test / test configuration (Timed LLVM Compilation 16.0 - Build System: Ninja) has an average run-time of 42 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 BenchmarkBuild System: NinjaRun-Time70140210280350Min: 4 / Avg: 41.75 / Max: 388

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsBuild System: NinjaDeviation246810Min: 0 / Avg: 0.07 / Max: 2

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 BaseTimed LLVM Compilation CPU Core ScalingBuild System: Ninja468121416324856643691215

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)
ARMv8 64-bit
arm64
Apple M2 Pro, Apple M3 Max
ARMv8 64-bit
aarch64
ARMv8, ARMv8 Cortex-A72 4-Core, ARMv8 Cortex-A76 4-Core, ARMv8 Neoverse-N1 128-Core, ARMv8 Neoverse-N1 160-Core, ARMv8 Neoverse-V2 72-Core, Apple M1 Pro, Rockchip ARMv8 Cortex-A76 4-Core, rk1-mainline-emmc, rk1-rok-emmc, rk1-rok-emmc6