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.

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

Use with caution this test profile is currently marked Experimental.

Test Created

6 December 2010

Last Updated

8 April 2018

Test Maintainer

Phoronix Media 

Test Type

Processor

Average Install Time

3 Seconds

Average Run Time

2 Minutes, 1 Second

Accolades

100k+ Downloads

Supported Platforms


Public Result Uploads *Reported Test Completions **Reported Installs **Test Profile Page Views ***OpenBenchmarking.orgEventsSample Pi Program Popularity Statisticspts/sample-program2010.122011.042011.082011.122012.042012.082012.122013.042013.082013.122014.042014.082014.122015.042015.082015.122016.042016.082016.122017.042017.082017.122018.042018.082018.122019.042019.082019.122020.042020.082020.122021.042021.082021.122022.042022.0815003000450060007500
* 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 26 September 2022.

Revision History

pts/sample-program-1.1.1   [View Source]   Sun, 08 Apr 2018 06:16:35 GMT
Minor fixes.

pts/sample-program-1.1.0   [View Source]   Mon, 06 Dec 2010 15:21:02 GMT
Initial import into OpenBenchmarking.org


Performance Metrics

Analyze Test Configuration:

Sample Pi Program

OpenBenchmarking.org metrics for this test profile configuration based on 480 public results since 26 October 2017 with the latest data as of 16 September 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.

OpenBenchmarking.orgDistribution Of Public Results480 Results Range From 2 To 823 Seconds231608911814717620523426329232135037940843746649552455358261164066969872775678581484380160240320400

Based on OpenBenchmarking.org data, the selected test / test configuration (Sample Pi Program) has an average run-time of 2 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 BenchmarkRun-Time48121620Min: 1 / Avg: 1.62 / Max: 14

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 RunsDeviation3691215Min: 0 / Avg: 0.56 / Max: 7

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)
MIPS 64-bit
mips64
ICT Loongson-3A R3, Loongson-3A R3, Loongson-3A R4, Loongson-3B R2
Loongson LoongArch 64-bit
loongarch64
Loongson-3A5000, Loongson-3A5000LL
Intel / AMD x86 32-bit
i686
(Many Processors)
ARMv8 64-bit
armv8l
ARMv8 rev 12 8-Core, ARMv8 rev 4 8-Core
ARMv7 32-bit
armv7l
ARMv7 4-Core, ARMv7 Cortex-A72 4-Core, ARMv7 rev 2, ARMv7 rev 3 8-Core, ARMv7 rev 4 4-Core, ARMv7 rev 5 4-Core
ARMv6 32-bit
armv6l
ARMv6-compatible rev 7
ARMv8 64-bit
arm64
Apple M1
ARMv8 64-bit
aarch64
ARMv8 Cortex-A53, ARMv8 Cortex-A72, ARMv8 Cortex-A72 4-Core, ARMv8 Cortex-A75 8-Core, ARMv8 Cortex-A78E 12-Core, ARMv8 rev 0 6-Core, FT-2000, FT2000, HUAWEI Kunpeng 920 2249K, Phytium FT-2000, Phytium FT2000PLUS, Phytium S2500

Recent Test Results

OpenBenchmarking.org Results Compare

3 Systems - 7 Benchmark Results

ARMv8 Cortex-A78E - EDK II r34.1-975eef6 - 30GB

Ubuntu 20.04 - 5.10.65-tegra - GNOME Shell 3.36.9

1 System - 7 Benchmark Results

Intel Core i9-11900K - Dell Precision 3650 Tower [0NDYHG] - Intel Device 43ef

Ubuntu 18.04 - 5.4.0-125-generic - GNOME Shell 3.28.4

2 Systems - 7 Benchmark Results

Intel Core i7-8550U - LENOVO 20L6A19KCD - Intel Xeon E3-1200 v6

Ubuntu 18.04 - 5.4.0-122-generic - GNOME Shell 3.28.4

1 System - 7 Benchmark Results

Intel Core i7-8550U - LENOVO 20L6A19KCD - Intel Xeon E3-1200 v6

Ubuntu 18.04 - 5.4.0-122-generic - GNOME Shell 3.28.4

1 System - 1 Benchmark Result

AMD Ryzen 9 3900X 12-Core - ASRockRack X470D4U2-2T - AMD Starship

Debian 11 - 5.10.0-18-amd64 - GCC 10.2.1 20210110

2 Systems - 21 Benchmark Results

Intel Core i5-2450M - Dell 08FDW5 - Intel 2nd Generation Core DRAM

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

1 System - 4 Benchmark Results

FT2000/4C - Byosoft FT2004C - 1 x 4 GB DDR4-2400MT

Uos 20 - 4.19.0-arm64-desktop - Deepin Desktop Environment

3 Systems - 27 Benchmark Results

Intel Celeron J4125 - (GB01_XX_1_06 BIOS) - Intel Gemini Lake

Ubuntu 20.04 - 5.11.0-25-generic - GNOME Shell 3.36.9

1 System - 1 Benchmark Result

Intel Core i7 870 - Intel DH55HC - Intel Core DMI

Fedora Linux 36 - 5.18.11-200.fc36.x86_64 - GNOME Shell 42.3.1

1 System - 3 Benchmark Results

Intel Core i5-4210U - LENOVO CRESCENTBAY - Intel Haswell-ULT DRAM

Ubuntu 22.04 - 5.15.0-39-generic - GNOME Shell 42.1

1 System - 4 Benchmark Results

Intel Core i5-4210U - LENOVO CRESCENTBAY - Intel Haswell-ULT DRAM

Ubuntu 22.04 - 5.15.0-39-generic - GNOME Shell 42.1

1 System - 6 Benchmark Results

Intel Core i5-4210U - LENOVO CRESCENTBAY - Intel Haswell-ULT DRAM

Ubuntu 22.04 - 5.15.0-39-generic - GNOME Shell 42.1

1 System - 6 Benchmark Results

Intel Core i5-4210U - LENOVO CRESCENTBAY - Intel Haswell-ULT DRAM

Ubuntu 22.04 - 5.15.0-39-generic - GNOME Shell 42.1

1 System - 6 Benchmark Results

Intel Core i5-4210U - LENOVO CRESCENTBAY - Intel Haswell-ULT DRAM

Ubuntu 22.04 - 5.15.0-39-generic - GNOME Shell 42.1

1 System - 4 Benchmark Results

Intel Core i5-4210U - LENOVO CRESCENTBAY - Intel Haswell-ULT DRAM

Ubuntu 22.04 - 5.15.0-39-generic - GNOME Shell 42.1

Most Popular Test Results

OpenBenchmarking.org Results Compare

2 Systems - 5 Benchmark Results

2 x Intel Xeon Gold 6244 - H3C RS33M2C9S - Intel Sky Lake-E DMI3 Registers

CentOS Linux 7 - 3.10.0-1160.11.1.el7.x86_64 - GNOME Shell 3.28.3

2 Systems - 601 Benchmark Results

2 x Intel Xeon E5-2690 v4 - Intel S2600WTT v.......... - Intel Xeon E7 v4

Debian 9.4 - 4.9.0-6-amd64 - GCC 6.3.0 20170516 + Clang 3.8.1-24

12 Systems - 123 Benchmark Results

2 x Intel Xeon Gold 6138 - TYAN S7106 - Intel Sky Lake-E DMI3 Registers

Ubuntu 18.10 - 4.18.0-13-generic - GNOME Shell 3.30.1

4 Systems - 179 Benchmark Results

AMD Ryzen 5 5600X 6-Core - ASRock X570 Taichi - AMD Starship

Ubuntu 20.04 - 5.10.13-051013-lowlatency - GNOME Shell 3.36.4

2 Systems - 12 Benchmark Results

Intel Core i5-7200U - LENOVO 20HNCTO1WW - Intel Xeon E3-1200 v6

Debian testing - 4.13.0-1-amd64 - GNOME Shell 3.22.3

2 Systems - 10 Benchmark Results

Intel Core i5-7200U - LENOVO 20HNCTO1WW - Intel Xeon E3-1200 v6

Debian testing - 4.13.0-1-amd64 - GNOME Shell 3.22.3

2 Systems - 154 Benchmark Results

2 x Intel Xeon E5-2630 v4 - Dell 0KJCC5 - Intel Xeon E7 v4

Ubuntu 18.04 - 5.4.0-42-generic - GNOME Shell 3.28.4

3 Systems - 54 Benchmark Results

Apple M1 - Apple Mac mini - 8GB

macOS 11.0.1 - 20.1.0 - OpenCL 1.2

8 Systems - 478 Benchmark Results

Intel Core i9-7980XE - ASRock X299 Taichi XE - Intel Sky Lake-E DMI3 Registers

Gentoo - 5.0.17-gentoo - X Server 1.20.5

3 Systems - 213 Benchmark Results

AMD Ryzen 9 3900X 12-Core - ASUS ROG CROSSHAIR VIII HERO - AMD [AMD] Starship

FreeBSD - 12.0-RELEASE - GCC 8.3.0 + Clang 6.0.1

12 Systems - 102 Benchmark Results

AMD Ryzen 7 1700 Eight-Core - ASUS CROSSHAIR VI HERO - AMD 17h

Gentoo 2.6 - 5.3.11-gentoo - X Server + Wayland

12 Systems - 139 Benchmark Results

2 x Intel Xeon Gold 6138 - TYAN S7106 - Intel Sky Lake-E DMI3 Registers

Clear Linux OS 26850 - 4.19.11-673.native - GNOME Shell 3.30.2

1 System - 52 Benchmark Results

Intel 0000% - 186GB - 444GB

NetBSD 9.0_STABLE - 9.0_STABLE - X Server 1.20.5

8 Systems - 102 Benchmark Results

Intel Core i5-4690K - ASUS Z97-A-USB31 - Intel 4th Gen Core DRAM

ManjaroLinux 18.0.1 - 4.19.12-1-MANJARO - Xfce 4.13

Find More Test Results