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

4 Seconds

Average Run Time

1 Minute, 58 Seconds

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.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.092K4K6K8K10K
* 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 15 October 2024.

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 697 public results since 26 October 2017 with the latest data as of 27 August 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.

OpenBenchmarking.orgDistribution Of Public Results697 Results Range From 2 To 823 Seconds2316089118147176205234263292321350379408437466495524553582611640669698727756785814843120240360480600

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-Time3691215Min: 1 / Avg: 1.53 / Max: 10

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsDeviation246810Min: 0 / Avg: 0.49 / Max: 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, Spacemit X60, rv64imafdcvsu
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, Loongson-3A6000
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 8-Core, ARMv8 Cortex-A53, ARMv8 Cortex-A53 4-Core, ARMv8 Cortex-A53 8-Core, ARMv8 Cortex-A55 4-Core, ARMv8 Cortex-A57 6-Core, ARMv8 Cortex-A72, ARMv8 Cortex-A72 4-Core, ARMv8 Cortex-A72 6-Core, ARMv8 Cortex-A73 4-Core, ARMv8 Cortex-A73 6-Core, ARMv8 Cortex-A73 8-Core, ARMv8 Cortex-A75 8-Core, ARMv8 Cortex-A76 4-Core, ARMv8 Cortex-A77 8-Core, ARMv8 Cortex-A78 4-Core, ARMv8 Cortex-A78E 12-Core, ARMv8 Cortex-A78E 6-Core, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 2-Core, ARMv8 Neoverse-N2 2-Core, ARMv8 Neoverse-V1, ARMv8 rev 0 6-Core, FT-2000, FT2000, HUAWEI Kunpeng 920 2249K, Phytium FT-2000, Phytium FT2000PLUS, Phytium S2500, Rockchip ARMv8 4-Core, Rockchip ARMv8 Cortex-A55 4-Core, Rockchip ARMv8 Cortex-A72 6-Core, Rockchip ARMv8 Cortex-A76, Rockchip ARMv8 Cortex-A76 6-Core

Recent Test Results

OpenBenchmarking.org Results Compare

27 Systems - 30 Benchmark Results

Rockchip ARMv8 Cortex-A76 - Orange Pi 5 - 8GB

Debian 11 - 5.10.110-rockchip-rk3588 - Xfce 4.16

26 Systems - 30 Benchmark Results

SiFive RISC-V - StarFive VisionFive V2 - 4096MB

Debian GNU - 5.15.0-starfive - X Server

26 Systems - 30 Benchmark Results

Rockchip ARMv8 Cortex-A76 - Radxa ROCK 5B - 16GB

Ubuntu 20.04 - 5.10.66-27-rockchip-gea60d388902d - GCC 9.4.0

25 Systems - 30 Benchmark Results

ARMv8 Cortex-A53 - OrangePi Zero2 - 1024MB

Ubuntu 22.04 - 5.16.17-sun50iw9 - GCC 11.4.0

24 Systems - 30 Benchmark Results

ARMv8 Cortex-A53 - FriendlyElec NanoPi Fire3 - 1024MB

Ubuntu 16.04 - 4.4.172-s5p6818 - X Server

24 Systems - 30 Benchmark Results

Rockchip ARMv8 Cortex-A55 - Rockchip RK3566 OPi 3B - 4096MB

Ubuntu 22.04 - 5.10.160-rockchip-rk356x - Xfce 4.16

2 Systems - 47 Benchmark Results

Intel Xeon Platinum 8375C - Amazon EC2 c6i.4xlarge - Intel 440FX 82441FX PMC

Ubuntu 22.04 - 6.5.0-1020-aws - GCC 11.4.0

1 System - 5 Benchmark Results

Intel Xeon Platinum 8375C - Amazon EC2 c6i.4xlarge - Intel 440FX 82441FX PMC

Ubuntu 22.04 - 6.5.0-1020-aws - GCC 11.4.0

1 System - 1 Benchmark Result

Intel Xeon Platinum 8375C - Amazon EC2 c6i.4xlarge - Intel 440FX 82441FX PMC

Ubuntu 22.04 - 6.5.0-1020-aws - GCC 11.4.0

1 System - 2 Benchmark Results

Intel Core i7-12700H - System76 Oryx Pro - Intel Alder Lake PCH

Pop 22.04 - 6.8.0-76060800daily20240311-generic - GNOME Shell 42.9

1 System - 7 Benchmark Results

Intel Core i7-12700H - System76 Oryx Pro - Intel Alder Lake PCH

Pop 22.04 - 6.8.0-76060800daily20240311-generic - GNOME Shell 42.9

1 System - 4 Benchmark Results

Intel Core i7-12700H - System76 Oryx Pro - Intel Alder Lake PCH

Pop 22.04 - 6.8.0-76060800daily20240311-generic - GNOME Shell 42.9

1 System - 5 Benchmark Results

Intel Core i7-12700H - System76 Oryx Pro - Intel Alder Lake PCH

Pop 22.04 - 6.8.0-76060800daily20240311-generic - GNOME Shell 42.9

1 System - 5 Benchmark Results

Intel Core i7-12700H - System76 Oryx Pro - Intel Alder Lake PCH

Pop 22.04 - 6.8.0-76060800daily20240311-generic - GNOME Shell 42.9

1 System - 6 Benchmark Results

Intel Core i7-12700H - System76 Oryx Pro - Intel Alder Lake PCH

Pop 22.04 - 6.8.0-76060800daily20240311-generic - GNOME Shell 42.9

Most Popular Test Results

OpenBenchmarking.org Results Compare

2 Systems - 12 Benchmark Results

Loongson-3A R3 - Unknown - AMD RS780 + SB7x0

Debian testing - 4.4.83+ - GNOME Shell 3.22.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

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 - 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

4 Systems - 179 Benchmark Results

Intel Core i5-11600K - ASUS ROG MAXIMUS XIII HERO - Intel Device 43ef

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

12 Systems - 123 Benchmark Results

2 x Intel Xeon Gold 6138 - TYAN S7106 - Intel Device 2020

Debian 9.6 - 4.9.0-8-amd64 - GNOME Shell 3.22.3

2 Systems - 154 Benchmark Results

AMD Ryzen 9 5900X 12-Core - Gigabyte B550I AORUS PRO AX - AMD Starship

Ubuntu 20.04 - 5.4.0-53-generic - GNOME Shell 3.36.4

3 Systems - 54 Benchmark Results

Apple M1 - Apple Mac mini - 8GB

macOS 11.0.1 - 20.1.0 - OpenCL 1.2

3 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

3 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

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

12 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

3 Systems - 213 Benchmark Results

AMD Ryzen 9 3900X 12-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Device 1480

Ubuntu 18.04 - 4.18.0-25-generic - GNOME Shell 3.28.4

12 Systems - 139 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

Find More Test Results