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

2 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.112K4K6K8K10K
* 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 26 March 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 681 public results since 26 October 2017 with the latest data as of 13 February 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 Results681 Results Range From 2 To 823 Seconds2316089118147176205234263292321350379408437466495524553582611640669698727756785814843110220330440550

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, 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 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-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 - 1 Benchmark Result

AMD EPYC 9554 64-Core - VMware Virtual - Intel 440BX

FreeBSD - 14.0-RELEASE-p3 - Clang 16.0.6

1 System - 6 Benchmark Results

ARMv8 Cortex-A72 - HK-5130 - 8GB

Ubuntu 22.04 - 5.19.2-hk5130-release-1.0.0.b3 - 1.3.238

1 System - 16 Benchmark Results

Rockchip ARMv8 Cortex-A76 - Rockchip RK3588 Zmos - 8GB

Ubuntu 20.04.6 LTS - 5.10.153-g5a0aba17403d-dirty - 1.1.182

2 Systems - 4 Benchmark Results

Rockchip ARMv8 Cortex-A76 - Rockchip RK3588 Zmos - 8GB

Ubuntu 20.04.6 LTS - 5.10.153-g5a0aba17403d-dirty - 1.1.182

1 System - 4 Benchmark Results

Rockchip ARMv8 Cortex-A76 - Rockchip RK3588 Zmos - 8GB

Ubuntu 20.04.6 LTS - 5.10.153-g5a0aba17403d-dirty - 1.1.182

23 Systems - 30 Benchmark Results

Rockchip ARMv8 - Radxa ROCK Pi S - 425MB

Ubuntu 18.04 - 4.4.143-55-rockchip-g6b7accbc999b - X Server

1 System - 2 Benchmark Results

AMD E-350 - ASUS E35M1-I - AMD [AMD] 14h Root Complex

FreeBSD - 14.0-RELEASE - Clang 16.0.6

22 Systems - 30 Benchmark Results

ARMv8 Cortex-A53 - BCM2835 Raspberry Pi 3 Model B Rev 1.2 - 909MB

Debian 11 - 5.10.92-v8+ - LXDE

15 Systems - 102 Benchmark Results

AMD Ryzen 7 5700G - ASUS CROSSHAIR VI HERO - AMD Renoir

NixOS 23.11 - 6.1.62 - X Server + Wayland

14 Systems - 102 Benchmark Results

Intel Core m3-6Y30 - Google Caroline v1.0 - Intel Xeon E3-1200 v5

VoidLinux rolling - 5.9.13_1 - Sway

1 System - 7 Benchmark Results

Intel Core i3-8100T - (5.13 BIOS) - Intel Cannon Lake PCH

Zorin 16 - 5.15.0-89-generic - GNOME Shell 3.38.4

21 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

1 System - 16 Benchmark Results

Intel Core i3-8100T - (5.13 BIOS) - Intel Cannon Lake PCH

Zorin 16 - 5.15.0-89-generic - GNOME Shell 3.38.4

20 Systems - 30 Benchmark Results

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

Ubuntu 22.04 - 5.10.160-rockchip-rk356x - Xfce 4.16

1 System - 30 Benchmark Results

Intel Core i3-8100T - (5.13 BIOS) - Intel Cannon Lake PCH

Zorin 16 - 5.15.0-89-generic - GNOME Shell 3.38.4

Most Popular Test Results

OpenBenchmarking.org Results Compare

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 - 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 - 5 Benchmark Results

2 x Intel Xeon Gold 6244 - Intel 440BX - Intel 440BX

CentOS Linux 7 - 3.10.0-957.el7.x86_64 - GNOME Shell 3.28.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

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

12 Systems - 123 Benchmark Results

Intel Xeon Gold 6138 - TYAN B7106G24EV4HR - Intel Sky Lake-E DMI3 Registers

FreeBSD - 12.0-RELEASE - Clang 6.0.1

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

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

12 Systems - 102 Benchmark Results

AMD Ryzen 5 4500U - LENOVO LNVNB161216 - AMD Renoir Root Complex

Pop 20.04 - 5.7.7-050707-generic - GNOME Shell 3.36.3

3 Systems - 213 Benchmark Results

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

FreeBSD - 12.0-RELEASE - Clang 6.0.1

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 - 139 Benchmark Results

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

Fedora 29 - 4.19.10-300.fc29.x86_64 - GCC 8.2.1 20181215

3 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

Find More Test Results