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 21 November 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 698 public results since 26 October 2017 with the latest data as of 2 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.

OpenBenchmarking.orgDistribution Of Public Results698 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

1 System - 10 Benchmark Results

Intel Core i7-4790 - 8GB - 50GB

Debian 12 - 6.6.54-1.qubes.fc37.x86_64 - Xfce 4.18

27 Systems - 30 Benchmark Results

ARMv8 Cortex-A53 - BeagleBoard.org BeagleY-AI - 4096MB

Debian 12 - 6.1.83-ti-arm64-r63 - X Server

26 Systems - 30 Benchmark Results

Unknown - miniITX-E2000Q Board 2023 - 1536MB

Ubuntu 20.04 - 4.19.246-phytium-embeded+ - X Server 1.20.13

26 Systems - 30 Benchmark Results

ARMv8 Cortex-A72 - BCM2835 Raspberry Pi 4 Model B Rev 1.5 - Broadcom BCM2711

Debian 11 - 6.1.21-v8+ - LXDE

25 Systems - 30 Benchmark Results

Unknown - miniITX-E2000Q Board 2023 - 1536MB

Ubuntu 20.04 - 4.19.246-phytium-embeded+ - X Server 1.20.13

24 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

24 Systems - 30 Benchmark Results

Rockchip ARMv8 Cortex-A55 - Radxa ROCK3 Model A - 2048MB

Ubuntu 20.04 - 4.19.193-58-rockchip-gbac1feba87f0 - GCC 9.4.0

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

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

Find More Test Results