Primesieve

Primesieve generates prime numbers using a highly optimized sieve of Eratosthenes implementation. Primesieve benchmarks the CPU's L1/L2 cache performance.

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

Project Site

primesieve.org

Test Created

23 October 2012

Last Updated

18 February 2019

Test Maintainer

Kim Walisch 

Test Type

Processor

Average Install Time

15 Seconds

Average Run Time

8 Minutes, 23 Seconds

Test Dependencies

C/C++ Compiler Toolchain + CMake

Accolades

150k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsPrimesieve Popularity Statisticspts/primesieve2012.102013.012013.042013.072013.102014.012014.042014.072014.102015.012015.042015.072015.102016.012016.042016.072016.102017.012017.042017.072017.102018.012018.042018.072018.102019.012019.042019.072019.102020.012020.042020.072020.102021.012021.042021.0710K20K30K40K50K
* 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 21 September 2021.

Revision History

pts/primesieve-1.7.0   [View Source]   Mon, 18 Feb 2019 12:11:15 GMT
Update against Primesieve 7.4 upstream, https://github.com/phoronix-test-suite/test-profiles/pull/61

pts/primesieve-1.6.0   [View Source]   Fri, 07 Dec 2018 15:57:57 GMT
Update against upstream Primesieve, https://github.com/phoronix-test-suite/test-profiles/pull/43

pts/primesieve-1.5.0   [View Source]   Wed, 22 Aug 2018 15:51:39 GMT
Updated against Primesieve 7.1 from upstream, posted via GitHub tracker.

pts/primesieve-1.4.1   [View Source]   Tue, 27 Feb 2018 15:13:46 GMT
Update download links.

pts/primesieve-1.4.0   [View Source]   Mon, 16 Oct 2017 13:25:19 GMT
Upstream updates, switch from using OpenMP to C++11 threads.

pts/primesieve-1.3.1   [View Source]   Mon, 20 Apr 2015 11:52:52 GMT
Update against new Primesieve.

pts/primesieve-1.3.0   [View Source]   Sun, 05 Oct 2014 08:16:32 GMT
Updated test profile for new upstream Primesieve 5.4 by Kim Walisch.

pts/primesieve-1.2.0   [View Source]   Mon, 24 Feb 2014 17:46:52 GMT
Update Primesieve test profile against upstream v5.0 by Kim Walisch. Also add in SHA256 file sums and test against PTS5 Git.

pts/primesieve-1.1.1   [View Source]   Thu, 14 Mar 2013 09:59:40 GMT
Update download links file correctly.

pts/primesieve-1.1.0   [View Source]   Thu, 14 Mar 2013 09:56:17 GMT
Update against upstream Primesieve 4.2.

pts/primesieve-1.0.2   [View Source]   Tue, 23 Oct 2012 15:11:38 GMT
Improve some text string formatting.

pts/primesieve-1.0.1   [View Source]   Tue, 23 Oct 2012 14:58:14 GMT
Add SMP internal tag since Primesieve can use OpenMP.

pts/primesieve-1.0.0   [View Source]   Tue, 23 Oct 2012 14:55:00 GMT
Initial commit of the Primesieve test profile submitted by Kim Walisch.

Suites Using This Test

Multi-Core

CPU Massive


Performance Metrics

Analyze Test Configuration:

Primesieve 7.4

1e12 Prime Number Generation

OpenBenchmarking.org metrics for this test profile configuration based on 1,184 public results since 18 February 2019 with the latest data as of 23 September 2021.

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.

Component
Percentile Rank
# Compatible Public Results
Seconds (Average)
Mid-Tier
75th
> 12
75th
27
12 +/- 1
57th
4
20 +/- 1
53rd
20
25 +/- 1
Median
50th
26
50th
3
26 +/- 1
46th
7
32 +/- 1
42nd
5
38 +/- 1
41st
12
42 +/- 3
39th
8
44 +/- 1
39th
21
44 +/- 4
36th
3
47 +/- 1
35th
7
54 +/- 4
35th
6
55 +/- 5
32nd
4
59 +/- 2
32nd
5
61 +/- 5
27th
3
77 +/- 10
26th
10
80 +/- 9
Low-Tier
25th
> 83
24th
8
84 +/- 1
23rd
4
88 +/- 1
23rd
10
91 +/- 8
22nd
3
98 +/- 2
21st
3
105 +/- 4
20th
10
110 +/- 2
17th
16
184 +/- 15
17th
5
186 +/- 3
15th
5
198 +/- 15
14th
5
204 +/- 18
13th
5
212 +/- 24
12th
5
216 +/- 21
12th
18
216 +/- 28
10th
10
259 +/- 3
7th
4
451 +/- 7
7th
3
475 +/- 23
2nd
7
860 +/- 82
1st
5
1618 +/- 13
OpenBenchmarking.orgDistribution Of Public Results - 1e12 Prime Number Generation1184 Results Range From 2 To 1673 Seconds2438412516620724828933037141245349453557661765869974078182286390494598610271068110911501191123212731314135513961437147815191560160116421683150300450600750

Based on OpenBenchmarking.org data, the selected test / test configuration (Primesieve 7.4 - 1e12 Prime Number Generation) has an average run-time of 6 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 Benchmark1e12 Prime Number GenerationRun-Time1530456075Min: 1 / Avg: 5.4 / Max: 76

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between Runs1e12 Prime Number GenerationDeviation246810Min: 0 / Avg: 0.33 / Max: 4

Does It Scale Well With Increasing Cores?

Yes, based on the automated analysis of the collected public benchmark data, this test / test settings does generally scale well with increasing CPU core counts. Data based on publicly available results for this test / test settings, separated by vendor, result divided by the reference CPU clock speed, grouped by matching physical CPU core count, and normalized against the smallest core count tested from each vendor for each CPU having a sufficient number of test samples and statistically significant data.

IntelAMDOpenBenchmarking.orgRelative Core Scaling To BasePrimesieve CPU Core Scaling1e12 Prime Number Generation246812162032486412848121620

Notable Instruction Set Usage

Notable instruction set extensions supported by this test, based on an automatic analysis by the Phoronix Test Suite / OpenBenchmarking.org analytics engine.

Instruction Set
Support
Instructions Detected
SSE2 (SSE2)
Used by default on supported hardware.
 
MOVDQA MOVDQU PUNPCKLQDQ CVTSI2SD MULSD ADDSD MOVD CVTTSD2SI COMISD SUBSD DIVSD ANDPD MAXSD MOVAPD UCOMISD SQRTSD PADDQ MINSD ANDNPD CMPNLESD ORPD PSUBQ PSRLDQ
SSE 4.2 (SSE4_2)
Requires passing a supported compiler/build flag (verified with targets: sandybridge, skylake, tigerlake, cascadelake, znver2, znver3).
Found on Intel processors since at least 2010.
Found on AMD processors since Bulldozer (2011).

 
POPCNT
Requires passing a supported compiler/build flag (verified with targets: sandybridge, skylake, tigerlake, cascadelake, znver2, znver3).
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VZEROUPPER VINSERTF128 VEXTRACTF128
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VINSERTI128 VPBROADCASTQ
FMA (FMA)
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMADD231SD VFNMADD231SD
The test / benchmark does honor compiler flag changes.
Last automated analysis: 10 May 2021

This test profile binary relies on the shared libraries libpthread.so.0, libm.so.6, libc.so.6.

Recent Test Results

OpenBenchmarking.org Results Compare

10 Systems - 29 Benchmark Results

ARMv8 Cortex-A72 - Raspberry Pi 4 Model B Rev 1.4 - 8GB

Ubuntu 20.04 - 5.14.3-caculesl-raspi - 1.0.2

8 Systems - 23 Benchmark Results

ARMv8 Cortex-A72 - Raspberry Pi 4 Model B Rev 1.4 - 8GB

Ubuntu 20.04 - 5.14.0-caculesl-raspi - 1.0.2

6 Systems - 23 Benchmark Results

ARMv8 Cortex-A72 - Raspberry Pi 4 Model B Rev 1.4 - 8GB

Ubuntu 20.04 - 5.14.0-caculepure-raspi - 1.0.2

8 Systems - 23 Benchmark Results

ARMv8 Cortex-A72 - Raspberry Pi 4 Model B Rev 1.4 - 8GB

Ubuntu 20.04 - 5.14.0-caculepure-raspi - 1.0.2

7 Systems - 23 Benchmark Results

ARMv8 Cortex-A72 - Raspberry Pi 4 Model B Rev 1.4 - 8GB

Ubuntu 20.04 - 5.14.0-caculepure-raspi - 1.0.2

6 Systems - 23 Benchmark Results

ARMv8 Cortex-A72 - Raspberry Pi 4 Model B Rev 1.4 - 8GB

Ubuntu 20.04 - 5.14.0-caculeapplied-raspi - 1.0.2

6 Systems - 133 Benchmark Results

AMD Ryzen 9 5950X 16-Core - ASRock X570 Taichi Razer Edition - AMD Device 1480

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

5 Systems - 23 Benchmark Results

ARMv8 Cortex-A72 - Raspberry Pi 4 Model B Rev 1.4 - 8GB

Ubuntu 20.04 - 5.14.0-caculepure-raspi - 1.0.2

Most Popular Test Results

OpenBenchmarking.org Results Compare

4 Systems - 99 Benchmark Results

Apple - Apple Mac mini - 8GB

macOS 11.0 - 20.1.0 - OpenCL 1.2

2 Systems - 66 Benchmark Results

AMD Ryzen 9 3900X 12-Core - ASUS ROG CROSSHAIR VIII HERO - 2 x 8192 MB 3600MHz F4-3600C16-8GTRG

Microsoft Windows 10 Pro Build 18362 - 10.0 - 22.19.162.4

8 Systems - 360 Benchmark Results

AMD Ryzen Threadripper 3970X 32-Core - ASUS ROG ZENITH II EXTREME - AMD Starship

Ubuntu 19.10 - 5.4.0-999-generic - GNOME Shell 3.34.1

2 Systems - 123 Benchmark Results

Intel Core i7-8700K - ASUS TUF Z370-PLUS GAMING - Intel 8th Gen Core

ManjaroLinux 18.0.4 - 4.19.49-1-MANJARO - Xfce 4.13

3 Systems - 143 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 m6g.metal v1.0 - 252GB

Ubuntu 20.04 - 5.4.0-1009-aws - GCC 9.3.0

8 Systems - 439 Benchmark Results

AMD Ryzen 5 5600X 6-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship

Ubuntu 21.04 - 5.12.0-051200rc3daily20210315-generic - GNOME Shell 3.38.3

8 Systems - 62 Benchmark Results

AMD EPYC 7351P 16-Core - ASRockRack EPYCD8-2T - AMD Device 1450

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

6 Systems - 39 Benchmark Results

AMD EPYC 7571 - Amazon EC2 m5a.2xlarge - Intel 440FX 82441FX PMC

Ubuntu 18.04 - 4.15.0-1032-aws - GCC 7.3.0

4 Systems - 131 Benchmark Results

Intel Xeon E-2278GEL - Logic Supply RXM-181 TBD by OEM - Intel

FreeBSD - 13.0-BETA1 - Clang 11.0.1

2 Systems - 403 Benchmark Results

Intel Core i9-10900K - Gigabyte Z490 AORUS MASTER - Intel Comet Lake PCH

Ubuntu 20.10 - 5.8.0-22-generic - GNOME Shell 3.38.0

5 Systems - 1840 Benchmark Results

Intel Core i5-6200U - HP 8079 - Intel Xeon E3-1200 v5

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

1 System - 248 Benchmark Results

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

Ubuntu 18.04 - 5.2.0-999-generic - GNOME Shell 3.28.3

3 Systems - 406 Benchmark Results

AMD Ryzen 9 3900XT 12-Core - MSI MEG X570 GODLIKE - AMD Starship

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

Find More Test Results