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 UploadsReported Installs*Test Completions*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.047K14K21K28K35K
* 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.
Data current as of Sat, 10 Apr 2021 00:21:07 GMT.

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,011 public results since 18 February 2019 with the latest data as of 10 April 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
# Matching Public Results
Seconds (Average)
79th
27
12 +/- 1
Mid-Tier
75th
> 13
59th
4
20 +/- 1
54th
18
25 +/- 1
52nd
3
26 +/- 1
Median
50th
27
46th
7
32 +/- 1
43rd
5
38 +/- 1
41st
12
42 +/- 3
39th
8
44 +/- 1
39th
21
44 +/- 4
36th
3
47 +/- 1
34th
7
54 +/- 4
34th
6
55 +/- 5
31st
4
59 +/- 2
31st
5
61 +/- 5
Low-Tier
25th
> 77
25th
3
77 +/- 10
24th
10
80 +/- 9
22nd
8
84 +/- 1
21st
4
88 +/- 1
21st
10
91 +/- 8
20th
3
98 +/- 2
19th
3
105 +/- 4
18th
10
110 +/- 2
14th
16
184 +/- 15
14th
5
186 +/- 3
11th
5
198 +/- 15
11th
5
204 +/- 18
9th
5
212 +/- 24
8th
5
216 +/- 21
4th
4
451 +/- 7
3rd
3
475 +/- 23
2nd
7
860 +/- 82
1st
5
1618 +/- 13
OpenBenchmarking.orgDistribution Of Public Results - 1e12 Prime Number Generation1011 Results Range From 2 To 1673 Seconds2438412516620724828933037141245349453557661765869974078182286390494598610271068110911501191123212731314135513961437147815191560160116421683130260390520650

Based on OpenBenchmarking.org data, the selected test / test configuration (Primesieve 7.4 - 1e12 Prime Number Generation) has an average run-time of 5 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-Time1326395265Min: 1 / Avg: 4.82 / Max: 66

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.29 / Max: 3

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 Generation246812162064246810

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.
 
PUNPCKLQDQ MOVDQU MOVDQA 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, sapphirerapids, alderlake, 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, sapphirerapids, alderlake, 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, sapphirerapids, alderlake, 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, sapphirerapids, alderlake, 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: 31 January 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

3 Systems - 94 Benchmark Results

Intel Core i9-11900K - ASUS ROG MAXIMUS XIII HERO - 2 x 16384 MB 3200MHz Corsair CMK32GX4M2Z3600C18

Microsoft Windows 10 Pro Build 19042 - 10.0 - 10.0.19041.868

2 Systems - 92 Benchmark Results

Intel Core i9-11900K - ASUS ROG MAXIMUS XIII HERO - 2 x 16384 MB 3200MHz Corsair CMK32GX4M2Z3600C18

Microsoft Windows 10 Pro Build 19042 - 10.0 - 10.0.19041.868

11 Systems - 58 Benchmark Results

Intel Core i9-7980XE - ASUS PRIME X299-A - Intel Sky Lake-E DMI3 Registers

Ubuntu 18.04 - 4.18.0-999-generic - GNOME Shell 3.28.2

1 System - 15 Benchmark Results

AMD Athlon 3000G - Gigabyte B450 I AORUS PRO WIFI-CF - AMD Raven

Fedora 33 - 5.11.11-200.fc33.x86_64 - GNOME Shell 3.38.4

1 System - 1 Benchmark Result

AMD Ryzen 5 3600 6-Core - ASUS PRIME B350M-A - AMD Starship

Fedora 32 - 5.11.11-100.fc32.x86_64 - GNOME Shell 3.36.9

9 Systems - 442 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

13 Systems - 18 Benchmark Results

Intel Xeon Silver 4108 - TYAN S7100AG2NR - Intel Device 2020

Ubuntu 17.10 - 4.13.6-041306-generic - GNOME Shell 3.26.1

1 System - 272 Benchmark Results

1 System - 272 Benchmark Results

1 System - 323 Benchmark Results

Intel Core i9-11900K - ASUS ROG MAXIMUS XIII HERO - Intel Tiger Lake-H

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

2 Systems - 6 Benchmark Results

ARMv7 Cortex-A15 - Hardkernel ODROID-XU4 Odroid XU4 - 2048MB

Gentoo 2.7 - 5.4.98+ - X Server

Most Popular Test Results

OpenBenchmarking.org Results Compare

4 Systems - 99 Benchmark Results

VirtualApple - Apple Mac mini - 8GB

macOS 11.0 - 20.1.0 - OpenCL 1.2

8 Systems - 360 Benchmark Results

Intel Core i9-10980XE - Gigabyte X299X DESIGNARE 10G - Intel Sky Lake-E DMI3 Registers

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

6 Systems - 39 Benchmark Results

Intel Xeon Platinum 8175M - Amazon EC2 m5.4xlarge - Intel 440FX 82441FX PMC

Ubuntu 18.04 - 4.15.0-1032-aws - GCC 7.3.0

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

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

2 Systems - 123 Benchmark Results

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

Clear Linux OS 29920 - 5.1.9-781.native - GNOME Shell 3.32.2

3 Systems - 143 Benchmark Results

AMD EPYC 7742 64-Core - AMD DAYTONA_X - AMD Starship

Ubuntu 20.04 - 5.4.0-31-generic - GNOME Shell 3.36.1

5 Systems - 1839 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 - 263 Benchmark Results

AMD Ryzen 7 3700X 8-Core - MSI MEG X570 GODLIKE - AMD Device 1480

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

2 Systems - 403 Benchmark Results

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

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

Find More Test Results