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

25 October 2024

Test Maintainer

Kim Walisch 

Test Type

Processor

Average Install Time

19 Seconds

Average Run Time

8 Minutes, 23 Seconds

Test Dependencies

C/C++ Compiler Toolchain + CMake

Accolades

250k+ Downloads + 5k+ Public Benchmark Results

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.102024.022024.062024.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 20 November 2024.
1e1342.6%1e1243.6%1e1413.8%Length Option PopularityOpenBenchmarking.org

Revision History

pts/primesieve-1.11.0   [View Source]   Fri, 25 Oct 2024 12:53:19 GMT
Update against Primesieve 12.5 upstream.

pts/primesieve-1.10.0   [View Source]   Fri, 15 Mar 2024 19:16:10 GMT
Update against Primesieve 12.1 upstream. Closes: https://github.com/phoronix-test-suite/phoronix-test-suite/pull/776

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 12.5

Length: 1e12

OpenBenchmarking.org metrics for this test profile configuration based on 82 public results since 25 October 2024 with the latest data as of 15 November 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.

Component
Percentile Rank
# Compatible Public Results
Seconds (Average)
Mid-Tier
75th
> 6.1
70th
4
6.6 +/- 0.1
54th
4
12.5 +/- 0.2
Median
50th
13.7
46th
3
15.8 +/- 0.8
37th
3
17.9 +/- 0.5
33rd
4
21.6 +/- 0.2
29th
4
24.4 +/- 0.5
Low-Tier
25th
> 25.3
22nd
4
28.0 +/- 0.1
18th
4
33.4 +/- 0.6
14th
3
34.7 +/- 0.3
9th
3
37.0 +/- 1.6
7th
3
52.7 +/- 0.8
3rd
3
82.3 +/- 4.6
OpenBenchmarking.orgDistribution Of Public Results - Length: 1e1282 Results Range From 0 To 86 Seconds81624324048566472808896612182430

Based on OpenBenchmarking.org data, the selected test / test configuration (Primesieve 12.5 - Length: 1e12) 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 BenchmarkLength: 1e12Run-Time246810Min: 1 / Avg: 1 / Max: 1

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 CVTSI2SD MULSD ADDSD MOVAPD CVTTSD2SI DIVSD COMISD UCOMISD SQRTSD SUBSD MAXSD 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).

 
VFMADD132SD
The test / benchmark does honor compiler flag changes.
Last automated analysis: 16 March 2024

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)
ARMv8 64-bit
aarch64
ARMv8 Neoverse-N1 128-Core, ARMv8 Neoverse-V2, ARMv8 Neoverse-V2 72-Core

Recent Test Results

OpenBenchmarking.org Results Compare

3 Systems - 79 Benchmark Results

AMD Ryzen 7 PRO 5850U - LENOVO ThinkPad T14s Gen 2a 20XF004WUS - AMD Renoir

Ubuntu 24.04 - 6.10.0-061000rc4daily20240621-generic - GNOME Shell 46.0

3 Systems - 166 Benchmark Results

Intel Core i7-1065G7 - Dell XPS 13 7390 2-in-1 06CDVY - Intel Ice Lake-LP DRAM

Ubuntu 23.10 - 6.7.0-060700rc5-generic - GNOME Shell 45.1

3 Systems - 80 Benchmark Results

Intel Core i7-1185G7 - Dell XPS 13 9310 0DXP1F - Intel Tiger Lake-LP

Ubuntu 24.10 - 6.11.0-rc6-phx - GNOME Shell 47.0

2 Systems - 78 Benchmark Results

AMD Ryzen 7 PRO 6850U - LENOVO ThinkPad X13 Gen 3 21CM0001US - AMD 17h-19h PCIe Root Complex

Ubuntu 24.04 - 6.10.0-061000rc4daily20240621-generic - GNOME Shell 46.0

2 Systems - 28 Benchmark Results

Intel Core Ultra 7 155H - MTL Swift SFG14-72T Coral_MTH - Intel Device 7e7f

Ubuntu 24.10 - 6.11.0-rc6-phx - GNOME Shell 47.0

3 Systems - 22 Benchmark Results

Intel Core i7-1280P - MSI Prestige 14Evo A12M MS-14C6 - Intel Alder Lake PCH

Ubuntu 24.10 - 6.11.0-rc6-phx - GNOME Shell 47.0

2 Systems - 63 Benchmark Results

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

Ubuntu 24.04 - 6.10.0-061000rc4daily20240621-generic - GNOME Shell 46.0

4 Systems - 31 Benchmark Results

Intel Core i9-14900K - ASUS PRIME Z790-P WIFI - Intel Raptor Lake-S PCH

Ubuntu 24.04 - 6.10.0-061000rc6daily20240706-generic - GNOME Shell 46.0

3 Systems - 31 Benchmark Results

AMD Ryzen AI 9 365 - ASUS Zenbook S 16 UM5606WA_UM5606WA UM5606WA v1.0 - AMD Device 1507

Ubuntu 24.10 - 6.11.0-rc6-phx - GNOME Shell 47.0

1 System - 1 Benchmark Result

AMD Ryzen 7 7800X3D 8-Core - Gigabyte B650 EAGLE AX - AMD Device 14d8

Arch Linux - 6.11.5-arch1-1 - GCC 14.2.1 20240910

4 Systems - 3 Benchmark Results

ARMv8 Neoverse-V2 - Pegatron JIMBO P4352 - 1 x 480GB LPDDR5-6400MT

Ubuntu 24.04 - 6.8.0-47-generic-64k - NVIDIA

4 Systems - 15 Benchmark Results

AMD Ryzen 9 9950X 16-Core - ASUS ROG STRIX X670E-E GAMING WIFI - AMD Device 14d8

Ubuntu 24.04 - 6.10.1-061001-generic - GNOME Shell 46.0

3 Systems - 11 Benchmark Results

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

Ubuntu 22.04 - 6.8.0-47-generic - GNOME Shell 42.9

Most Popular Test Results

OpenBenchmarking.org Results Compare

3 Systems - 9 Benchmark Results

AMD Ryzen Threadripper 7980X 64-Cores - System76 Thelio Major - AMD Device 14a4

Ubuntu 24.04 - 6.8.0-47-generic - GNOME Shell 46.0

4 Systems - 15 Benchmark Results

AMD Ryzen 9 9950X 16-Core - ASUS ROG STRIX X670E-E GAMING WIFI - AMD Device 14d8

Ubuntu 24.04 - 6.10.1-061001-generic - GNOME Shell 46.0

2 Systems - 3 Benchmark Results

ARMv8 Neoverse-N1 - System76 Thelio Astra - Ampere Computing LLC Altra PCI Root Complex A

Ubuntu 24.04 - 6.8.0-47-generic-64k - GNOME Shell 46.0

5 Systems - 3 Benchmark Results

2 x AMD EPYC 9755 128-Core - AMD VOLCANO - AMD Device 153a

Ubuntu 24.04 - 6.12.0-rc4-amd-pstate-phx - GCC 13.2.0 + Clang 18.1.3

4 Systems - 3 Benchmark Results

ARMv8 Neoverse-V2 - Pegatron JIMBO P4352 - 1 x 480GB LPDDR5-6400MT

Ubuntu 24.04 - 6.8.0-47-generic-64k - NVIDIA

4 Systems - 31 Benchmark Results

Intel Core i9-14900K - ASUS PRIME Z790-P WIFI - Intel Raptor Lake-S PCH

Ubuntu 24.04 - 6.10.0-061000rc6daily20240706-generic - GNOME Shell 46.0

3 Systems - 31 Benchmark Results

AMD Ryzen AI 9 365 - ASUS Zenbook S 16 UM5606WA_UM5606WA UM5606WA v1.0 - AMD Device 1507

Ubuntu 24.10 - 6.11.0-rc6-phx - GNOME Shell 47.0

3 Systems - 11 Benchmark Results

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

Ubuntu 22.04 - 6.8.0-47-generic - GNOME Shell 42.9

2 Systems - 3 Benchmark Results

ARMv8 Neoverse-N1 - System76 Thelio Astra - Ampere Computing LLC Altra PCI Root Complex A

Ubuntu 24.04 - 6.8.0-47-generic-64k - GNOME Shell 46.0

2 Systems - 13 Benchmark Results

ARMv8 Neoverse-V2 - KVM Google Compute Engine - 18 x 16GB RAM

Ubuntu 24.04 - 6.8.0-1015-gcp - GCC 13.2.0

2 Systems - 78 Benchmark Results

AMD Ryzen 7 PRO 6850U - LENOVO ThinkPad X13 Gen 3 21CM0001US - AMD 17h-19h PCIe Root Complex

Ubuntu 24.04 - 6.10.0-061000rc4daily20240621-generic - GNOME Shell 46.0

Find More Test Results