Primesieve

Primesieve generates prime numbers using a highly optimized sieve of Eratosthenes implementation. Primesieve primarily 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

Source Repository

github.com

Test Created

23 October 2012

Last Updated

20 July 2022

Test Maintainer

Kim Walisch 

Test Type

Processor

Average Install Time

22 Seconds

Average Run Time

8 Minutes, 23 Seconds

Test Dependencies

C/C++ Compiler Toolchain + CMake

Accolades

200k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsPrimesieve Popularity Statisticspts/primesieve2012.102013.022013.062013.102014.022014.062014.102015.022015.062015.102016.022016.062016.102017.022017.062017.102018.022018.062018.102019.022019.062019.102020.022020.062020.102021.022021.062021.102022.022022.062022.102023.022023.062023.1011K22K33K44K55K
* 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 3 December 2023.
1e1256.1%1e1343.9%Length Option PopularityOpenBenchmarking.org

Revision History

pts/primesieve-1.9.0   [View Source]   Wed, 20 Jul 2022 09:19:25 GMT
Update against Primesieve 8.0 upstream.

pts/primesieve-1.8.0   [View Source]   Sat, 04 Dec 2021 05:39:18 GMT
Update against Primesieve 7.7 upstream.

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 8.0

Length: 1e12

OpenBenchmarking.org metrics for this test profile configuration based on 623 public results since 20 July 2022 with the latest data as of 26 November 2023.

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
> 9
64th
18
11 +/- 1
Median
50th
17
31st
7
26 +/- 2
30th
11
27
26th
4
29 +/- 1
Low-Tier
25th
> 30
25th
21
30 +/- 1
19th
3
35 +/- 2
19th
14
36 +/- 5
17th
6
38 +/- 1
5th
4
104 +/- 13
4th
4
118 +/- 2
OpenBenchmarking.orgDistribution Of Public Results - Length: 1e12623 Results Range From 1 To 2984 Seconds1611211812413013614214815416016617217818419019611021108111411201126113211381144115011561162116811741180118611921198120412101216122212281234124012461252125812641270127612821288129413001120240360480600

Based on OpenBenchmarking.org data, the selected test / test configuration (Primesieve 8.0 - Length: 1e12) has an average run-time of 3 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 BenchmarkLength: 1e12Run-Time1122334455Min: 1 / Avg: 2.54 / Max: 56

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 RunsLength: 1e12Deviation246810Min: 0 / Avg: 0.28 / 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 ScalingLength: 1e124681012162432641283691215

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 MOVDQA MOVDQU MOVD CVTTSD2SI CVTSI2SD COMISD SUBSD DIVSD ANDPD MAXSD MOVAPD ADDSD MULSD UCOMISD SQRTSD PADDQ MINSD SHUFPD
SSE 4.2 (SSE4_2)
Used by default on supported hardware.
Found on Intel processors since at least 2010.
Found on AMD processors since Bulldozer (2011).

 
POPCNT
Used by default on supported hardware.
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VZEROUPPER VINSERTF128 VEXTRACTF128
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VPBROADCASTQ VINSERTI128 VEXTRACTI128
Advanced Vector Extensions 512 (AVX512)
Used by default on supported hardware.
 
(ZMM REGISTER USE)
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: 26 July 2022

This test profile binary relies on the shared libraries libm.so.6, libc.so.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
IBM POWER (PowerPC) 64-bit
ppc64
POWER6, PPC970MP
Loongson LoongArch 64-bit
loongarch64
Loongson-3A5000, Loongson-3A6000
ARMv8 64-bit
arm64
Apple M1, Apple M1 Pro, Apple M2
ARMv8 64-bit
aarch64
ARMv8 Cortex-A53 4-Core, ARMv8 Cortex-A72 4-Core, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 128-Core, Apple M1, Apple M2, Rockchip ARMv8 Cortex-A76 4-Core

Recent Test Results

OpenBenchmarking.org Results Compare

1 System - 39 Benchmark Results

AMD Ryzen 9 3900X 12-Core - ASUS TUF GAMING X570-PLUS - AMD Starship

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

7 Systems - 105 Benchmark Results

AMD Ryzen Threadripper PRO 7995WX 96-Cores - HP 8B24 - AMD Device 14a4

Ubuntu 23.10 - 6.5.0-10-generic - GNOME Shell 45.0

6 Systems - 105 Benchmark Results

AMD Ryzen Threadripper PRO 7995WX 96-Cores - HP 8B24 - AMD Device 14a4

openSUSE Tumbleweed 20231122 - 6.6.2-1-default - GNOME Shell 45.1

5 Systems - 105 Benchmark Results

AMD Ryzen Threadripper PRO 7995WX 96-Cores - HP 8B24 - 8 x 16384 MB 5200MHz Hynix HMCG78AGBRA190N

Microsoft Windows 11 Pro Build 22631 - 10.0.22631.2715 - 537.42

4 Systems - 113 Benchmark Results

AMD Ryzen Threadripper PRO 7995WX 96-Cores - HP 8B24 - AMD Device 14a4

Ubuntu 23.10 - 6.5.0-10-generic - GNOME Shell 45.0

3 Systems - 113 Benchmark Results

AMD Ryzen Threadripper PRO 7995WX 96-Cores - HP 8B24 - AMD Device 14a4

Ubuntu 23.10 - 6.5.0-10-generic - GNOME Shell 45.0

1 System - 1 Benchmark Result

ARM Neoverse-N1 r3p1 - ADLINK Ampere Altra Developer ES2 - Ampere Computing LLC Altra PCI Root Complex A

FreeBSD - 14.0-RELEASE - Clang 16.0.6

1 System - 7 Benchmark Results

Loongson-3A6000 - Loongson Loongson-LS3A6000-7A2000-1w-EVB-V1.21 - Loongson LLC Hyper Transport Bridge

Loongnix 20 - 4.19.0-19-loongson-3 - X Server 1.20.4

30 Systems - 11 Benchmark Results

AMD Ryzen 7 PRO 5850U - LENOVO 20X7003WFR - AMD Renoir

Gentoo 2.8 - 5.17.3-gentoo - KDE Plasma 5.24.4

1 System - 99 Benchmark Results

Intel Core i7-1370P - LENOVO 21HGS21V00 - 8 x 4096 MB 4800MHz H58G66BK7BX067

Microsoft Windows 10 Enterprise Build 19045 - 10.0.19045.3570 - 31.0.101.4575

13 Systems - 102 Benchmark Results

AMD Ryzen 5 2500U - Dell 02YPPF - AMD Raven

Pop 20.04 - 5.4.0-7634-generic - GNOME Shell 3.36.2

1 System - 1 Benchmark Result

2 x AMD EPYC 9754 128-Core - Dell PowerEdge R7625 [0H1TJT] - AMD Device 14a4

Ubuntu 22.04 - 6.1.44-custom - GCC 11.4.0

3 Systems - 1 Benchmark Result

8 x AMD Ryzen 7 5800H - Intel 440BX - 14GB

Ubuntu 20.04 - 6.2.0-36-generic - 1.1.182

4 Systems - 1 Benchmark Result

8 x AMD Ryzen 7 5800H - Intel 440BX - 14GB

Ubuntu 20.04 - 6.2.0-36-generic - 1.1.182

2 Systems - 1 Benchmark Result

8 x AMD Ryzen 7 5800H - Intel 440BX - 14GB

Ubuntu 20.04 - 6.2.0-36-generic - 1.1.182

Most Popular Test Results

OpenBenchmarking.org Results Compare

13 Systems - 333 Benchmark Results

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

Ubuntu 22.04 - 6.0.0-060000rc1daily20220820-generic - GNOME Shell 42.2

4 Systems - 134 Benchmark Results

AMD Ryzen 9 5950X 16-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship

Ubuntu 22.04 - 5.15.0-40-generic - GNOME Shell 42.2

2 Systems - 89 Benchmark Results

AMD Ryzen 7 5800X3D 8-Core - ASUS ROG CROSSHAIR VIII HERO - 2 x 16384 MB 3600MHz F4-3600C18-16GVK

Microsoft Windows 11 Pro Build 22000 - 10.0.22000.856 - 30.0.101.3267

16 Systems - 333 Benchmark Results

AMD Ryzen 9 3950X 16-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship

Ubuntu 22.04 - 6.0.0-060000rc1daily20220820-generic - GNOME Shell 42.2

2 Systems - 156 Benchmark Results

2 x AMD EPYC 75F3 32-Core - ASRockRack ROME2D16-2T - AMD Starship

Ubuntu 21.10 - 5.19.0-rc2-phx-mglru-v12 - GNOME Shell 40.5

4 Systems - 211 Benchmark Results

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

Ubuntu 22.04 - 5.15.0-40-generic - GNOME Shell 42.2

5 Systems - 396 Benchmark Results

Intel Core i9-13900K - ASUS PRIME Z790-P WIFI - Intel Device 7a27

Ubuntu 23.04 - 6.2.0-060200rc8daily20230213-generic - GNOME Shell 43.2

3 Systems - 311 Benchmark Results

Intel Core i5-12600K - ASUS PRIME Z690-P WIFI D4 - Intel Device 7aa7

Ubuntu 22.04 - 5.19.0-051900rc6daily20220716-generic - GNOME Shell 42.1

2 Systems - 219 Benchmark Results

AMD Ryzen 9 5900HX - ASUS G513QY v1.0 - AMD Renoir

Arch rolling - 5.18.16-arch1-1 - KDE Plasma 5.25.4

3 Systems - 172 Benchmark Results

Intel Core i5-12400 - MSI PRO Z690-A WIFI DDR4 - Intel Device 7aa7

Ubuntu 22.04 - 5.15.0-40-generic - GNOME Shell 42.2

2 Systems - 218 Benchmark Results

Apple M1 - Apple Mac mini - 8GB

Arch Linux ARM - 5.19.0-rc7-asahi-2-1-ARCH - KDE Plasma 5.25.4

3 Systems - 190 Benchmark Results

AMD Ryzen 7 PRO 6850U - LENOVO 21CM0001US - AMD Device 14b5

Arch rolling - 5.18.16-arch1-1 - KDE Plasma 5.25.4

2 Systems - 130 Benchmark Results

Intel Xeon Silver 4216 - TYAN S7100AG2NR - Intel Sky Lake-E DMI3 Registers

Debian 11 - 5.10.0-10-amd64 - X Server

2 Systems - 334 Benchmark Results

2 x AMD EPYC 7601 32-Core - Dell 02MJ3T - AMD 17h

Ubuntu 22.04 - 5.15.0-40-generic - GNOME Shell 42.2

Find More Test Results