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, 29 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.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.0814002800420056007000
* 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 20 September 2021.

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

Phoronix Test Suite v4.2.0

OpenBenchmarking.org metrics for this test profile configuration based on 641 public results since 23 December 2012 with the latest data as of 16 June 2016.

Additional benchmark metrics will come after OpenBenchmarking.org has collected a sufficient data-set.

OpenBenchmarking.orgDistribution Of Public Results - Phoronix Test Suite v4.2.0641 Results Range From 3 To 103 Seconds312213039485766758493102111140280420560700

Based on OpenBenchmarking.org data, the selected test / test configuration (Sample Pi Program - Phoronix Test Suite v4.2.0) 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 BenchmarkPhoronix Test Suite v4.2.0Run-Time246810Min: 1 / Avg: 1 / Max: 1

Recent Test Results

OpenBenchmarking.org Results Compare

2 Systems - 7 Benchmark Results

Intel Xeon E5-2686 v4 - Xen HVM domU - Intel 440FX 82441FX PMC

Ubuntu 18.04 - 5.4.0-1029-aws - GCC 7.5.0

1 System - 7 Benchmark Results

Intel Xeon E5-2686 v4 - Xen HVM domU - Intel 440FX 82441FX PMC

Ubuntu 18.04 - 5.4.0-1029-aws - GCC 7.5.0

1 System - 1 Benchmark Result

Intel Core i7-8700 - (5.13 BIOS) - Intel Cannon Lake PCH

Red Hat Enterprise Linux Server 7.9 - 3.10.0-1160.41.1.el7.x86_64 - GNOME Shell 3.28.3

1 System - 1 Benchmark Result

Intel Core i7-8700 - (5.13 BIOS) - Intel Cannon Lake PCH

Red Hat Enterprise Linux Server 7.9 - 3.10.0-1160.41.1.el7.x86_64 - GNOME Shell 3.28.3

1 System - 4 Benchmark Results

AMD Ryzen 5 3600X 6-Core - Gigabyte X570 AORUS PRO - AMD Starship

Arch rolling - 5.13.13-arch1-1 - KDE Plasma 5.22.4

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

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

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

3 Systems - 5 Benchmark Results

4 x Intel Xeon E7-4820 v4 - Dell 0Y0V4F - Intel Xeon E7 v4

Debian 11 - 5.10.0-8-amd64 - GNOME Shell 3.38.4

1 System - 5 Benchmark Results

ARMv8 Cortex-A72 - BCM2835 Raspberry Pi 4 Model B Rev 1.2 - 4096MB

Ubuntu 20.04 - 5.4.0-1041-raspi - X Server 1.20.11

1 System - 5 Benchmark Results

ARMv8 Cortex-A72 - BCM2835 Raspberry Pi 4 Model B Rev 1.2 - 4096MB

Ubuntu 20.04 - 5.4.0-1041-raspi - X Server 1.20.11

2 Systems - 5 Benchmark Results

Intel Xeon E5-2680 v4 - OpenStack Foundation Nova - Intel 440FX- 82441FX PMC

Ubuntu 20.04 - 5.4.0-66-generic - GCC 9.3.0

1 System - 3 Benchmark Results

AMD EPYC 7313 16-Core - Supermicro H12SSL-i v1.01 - AMD Starship

Debian 10 - 4.19.0-17-amd64 - GCC 8.3.0 + Open64 PARSE ERROR

1 System - 2 Benchmark Results

AMD EPYC 7313 16-Core - Supermicro H12SSL-i v1.01 - AMD Starship

Debian 10 - 4.19.0-17-amd64 - GCC 8.3.0 + Open64 PARSE ERROR

Most Popular Test Results

Find More Test Results