Sample Pi Program

A simple C++ program that calculates Pi to 8,765,4321 digits using the Leibniz formula. This test can be used for showcasing how to write a basic test profile.


Sample Pi Program

OpenBenchmarking.org metrics for this test profile configuration based on 699 public results since 26 October 2017 with the latest data as of 28 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
Details
Percentile Rank
# Compatible Public Results
Seconds (Average)
Zen 4 [12 Cores / 24 Threads]
98th
14
4
Alder Lake [14 Cores / 20 Threads]
96th
7
4
Sandy Bridge [4 Cores / 4 Threads]
90th
7
7
Kaby/Coffee/Whiskey Lake [6 Cores / 6 Threads]
87th
13
7
Cascade Lake [20 Cores / 40 Threads]
86th
3
8
Haswell [4 Cores / 4 Threads]
81st
3
9
Skylake [4 Cores / 8 Threads]
79th
3
9
Mid-Tier
75th
> 11
Zen 3 [16 Cores / 32 Threads]
73rd
4
11
Haswell [4 Cores / 4 Threads]
69th
9
13
Kaby/Coffee/Whiskey Lake [4 Cores / 4 Threads]
68th
5
13
Zen+ [8 Cores / 16 Threads]
67th
6
13
Zen+ [16 Cores / 32 Threads]
64th
7
13
Haswell [8 Cores / 8 Threads]
62nd
6
14
Skylake [4 Cores / 4 Threads]
60th
3
14
Cascade Lake [48 Cores / 96 Threads]
58th
8
15
Haswell [32 Cores / 64 Threads]
56th
4
15
Haswell [56 Cores / 56 Threads]
56th
4
15
Haswell [36 Cores / 72 Threads]
54th
8
15 +/- 1
Skylake [4 Cores / 8 Threads]
54th
3
15
Cascade Lake [16 Cores / 32 Threads]
53rd
4
16
Cascade Lake [24 Cores / 48 Threads]
51st
4
17
Median
50th
17
Zen 2 [64 Cores / 128 Threads]
50th
4
17 +/- 2
Broadwell [32 Cores / 64 Threads]
50th
6
17 +/- 1
Zen [64 Cores / 128 Threads]
49th
5
17
Haswell [24 Cores / 48 Threads]
46th
6
18
Zen [32 Cores / 64 Threads]
38th
4
20
[4 Cores / 8 Threads]
35th
5
21
Arrandale [4 Cores / 4 Threads]
30th
5
24
Ivy Bridge [12 Cores / 24 Threads]
27th
3
26 +/- 1
Low-Tier
25th
> 28
[4 Cores / 4 Threads]
23rd
9
32 +/- 4
[4 Cores / 4 Threads]
22nd
7
34
21st
3
35 +/- 2
[4 Cores / 4 Threads]
20th
4
37
Merom [2 Cores / 2 Threads]
18th
6
42
Haswell [16 Cores / 32 Threads]
13th
38
45
11th
3
50 +/- 1
Troy [2 Cores / 2 Threads]
10th
7
50
Cedar Mill [4 Cores / 8 Threads]
7th
7
66
[4 Cores / 4 Threads]
5th
3
78 +/- 10