Rust Prime Benchmark

Based on petehunt/rust-benchmark, this is a prime number benchmark that is multi-threaded and written in Rustlang.

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

Project Site

github.com

Test Created

1 October 2018

Test Maintainer

Michael Larabel 

Test Type

Processor

Average Install Time

3 Seconds

Average Run Time

5 Minutes, 42 Seconds

Test Dependencies

C/C++ Compiler Toolchain + Rust

Accolades

20k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsRust Prime Benchmark Popularity Statisticspts/rust-prime2018.102018.122019.022019.042019.062019.082019.102019.122020.022020.042020.062020.082020.102020.122021.022021.042021.062021.082021.102021.122022.022022.042022.062022.082022.102022.122023.022023.042023.062023.082023.102023.122024.022024.042024.062024.082024.102K4K6K8K10K
* 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 21 November 2024.

Revision History

pts/rust-prime-1.0.0   [View Source]   Mon, 01 Oct 2018 11:54:05 GMT
Rustlang multi-threaded prime number benchmark.

Suites Using This Test

Multi-Core

CPU Massive


Performance Metrics

Analyze Test Configuration:

Rust Prime Benchmark

Prime Number Test To 200,000,000

OpenBenchmarking.org metrics for this test profile configuration based on 1,370 public results since 1 October 2018 with the latest data as of 21 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)
81st
3
10
Mid-Tier
75th
> 13
75th
44
13 +/- 1
69th
7
14
66th
10
15 +/- 2
51st
3
29 +/- 1
Median
50th
30
48th
14
32 +/- 3
46th
7
35 +/- 1
46th
6
35 +/- 4
40th
9
43 +/- 3
30th
3
62 +/- 1
Low-Tier
25th
> 77
24th
4
91 +/- 3
17th
10
127 +/- 1
15th
4
146 +/- 12
14th
3
148 +/- 1
12th
6
168 +/- 17
11th
3
210 +/- 1
10th
3
248 +/- 1
9th
3
404 +/- 6
OpenBenchmarking.orgDistribution Of Public Results - Prime Number Test To 200,000,0001370 Results Range From 2 To 8488 Seconds217234251268285210221192136215321702187220422212238225522722289230623232340235723742391240824252442245924762493251025272544256125782595261226292646266326802697271427312748276527822799281628332850230060090012001500

Based on OpenBenchmarking.org data, the selected test / test configuration (Rust Prime Benchmark - Prime Number Test To 200,000,000) 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 BenchmarkPrime Number Test To 200,000,000Run-Time1428425670Min: 1 / Avg: 5.19 / Max: 72

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 RunsPrime Number Test To 200,000,000Deviation246810Min: 0 / Avg: 0.33 / Max: 5

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 BaseRust Prime Benchmark CPU Core ScalingPrime Number Test To 200,000,000246816320.78961.57922.36883.15843.948

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.
 
CVTSI2SD SQRTSD ADDSD XORPD MAXSD MOVAPD MINSD CVTTSD2SI MOVDQU MOVDQA PSHUFD MOVD PMULUDQ PSHUFLW PADDQ
Last automated analysis: 18 January 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
ppc64le
POWER8, POWER9 22-Core, POWER9 4-Core, POWER9 44-Core, POWER9 8-Core, POWER9 altivec supported 160-Core, POWER9 altivec supported 176-Core, POWER9 altivec supported 44-Core
Intel / AMD x86 32-bit
i686
(Many Processors)
ARMv7 32-bit
armv7l
ARMv7 4-Core, ARMv7 Cortex-A15 8-Core, ARMv7 Cortex-A53 4-Core, ARMv7 Cortex-A7 4-Core, ARMv7 Cortex-A72 4-Core, ARMv7 rev 1 4-Core, ARMv7 rev 2 4-Core, ARMv7 rev 3 4-Core, ARMv7 rev 3 8-Core, ARMv7 rev 4 4-Core
ARMv6 32-bit
armv6l
ARMv6-compatible rev 7
ARMv8 64-bit
arm64
Apple M1, Apple M1 Max, Apple M1 Pro
ARMv8 64-bit
aarch64
AArch64 rev 1, AArch64 rev 12, AArch64 rev 2, AArch64 rev 4, ARMv8, ARMv8 Cortex-A53 2-Core, ARMv8 Cortex-A53 3-Core, ARMv8 Cortex-A53 4-Core, ARMv8 Cortex-A53 8-Core, ARMv8 Cortex-A57 4-Core, ARMv8 Cortex-A72, ARMv8 Cortex-A72 16-Core, ARMv8 Cortex-A72 2-Core, ARMv8 Cortex-A72 4-Core, ARMv8 Cortex-A72 6-Core, ARMv8 Cortex-A72 8-Core, ARMv8 Cortex-A73 6-Core, ARMv8 Cortex-A76 4-Core, ARMv8 Cortex-A77 6-Core, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 64-Core, ARMv8 Neoverse-V1, ARMv8 Neoverse-V2, ARMv8 rev 0 8-Core, ARMv8 rev 1 4-Core, ARMv8 rev 3 4-Core, Amlogic ARMv8 Cortex-A53 4-Core, Ampere eMAG ARMv8 32-Core, AmpereOne 192-Core, Cavium ThunderX, Phytium D2000, Rockchip ARMv8 Cortex-A53 4-Core, Rockchip ARMv8 Cortex-A76 4-Core, Rockchip ARMv8 Cortex-A76 6-Core

Recent Test Results

OpenBenchmarking.org Results Compare

1 System - 1 Benchmark Result

2 x Intel Xeon Gold 6138 - Dell 01YM03 - Intel Sky Lake-E DMI3 Registers

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

1 System - 1 Benchmark Result

ARMv8 Neoverse-V1 - Amazon EC2 c7g.2xlarge - Amazon Device 0200

Amazon Linux 2023.6.20241031 - 6.1.112-122.189.amzn2023.aarch64 - GCC 11.4.1 20230605

1 System - 1 Benchmark Result

ARMv8 Neoverse-V2 - Amazon EC2 c8g.2xlarge - Amazon Device 0200

Amazon Linux 2023.6.20241031 - 6.1.112-122.189.amzn2023.aarch64 - GCC 11.4.1 20230605

1 System - 2 Benchmark Results

Intel Core i7-4790 - 8GB - 50GB

Debian 12 - 6.6.54-1.qubes.fc37.x86_64 - Xfce 4.18

1 System - 461 Benchmark Results

AMD Ryzen 7 5800X 8-Core - GIGABYTE MC12-LE0-00 v01000100 - AMD Starship

Ubuntu 24.04 - 6.11.0-061100-generic - GNOME Shell 46.0

4 Systems - 17 Benchmark Results

ARMv7 Cortex-A53 - BCM2835 Raspberry Pi 3 Model B Plus Rev 1.3 - 1024MB

Raspbian 11 - 6.1.21-v7+ - X Server 1.20.11

4 Systems - 17 Benchmark Results

ARMv8 Cortex-A53 - Texas Instruments AM625 SK - 2048MB

Debian 12 - 6.1.33-00001-ge4769b223d98-dirty - X Server 1.21.1.7

3 Systems - 17 Benchmark Results

ARMv7 Cortex-A53 - BCM2835 Raspberry Pi 3 Model B Plus Rev 1.3 - 1024MB

Raspbian 11 - 6.1.21-v7+ - X Server 1.20.11

2 Systems - 17 Benchmark Results

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

Oracle Linux Server 8.10 - 5.15.0-208.159.3.2.el8uek.aarch64 - GCC 8.5.0 20210514

1 System - 17 Benchmark Results

ARMv8 Cortex-A72 - U-Boot 2023.07.02 - 8GB

Oracle Linux Server 9.4 - 5.15.0-208.159.3.2.el9uek.aarch64 - GCC 11.4.1 20231218

1 System - 15 Benchmark Results

ARMv8 Cortex-A53 - Texas Instruments AM625 SK - 2048MB

Debian 12 - 6.1.33-00001-ge4769b223d98-dirty - X Server 1.21.1.7

1 System - 15 Benchmark Results

ARMv8 Cortex-A53 - Texas Instruments AM625 SK - 2048MB

Debian 12 - 6.1.33-00001-ge4769b223d98-dirty - X Server 1.21.1.7

1 System - 17 Benchmark Results

ARMv8 Cortex-A72 - U-Boot 2023.07.02 - 8GB

Oracle Linux Server 9.4 - 5.15.0-208.159.3.2.el9uek.aarch64 - GCC 11.4.1 20231218

6 Systems - 28 Benchmark Results

ARMv8 Cortex-A72 - U-Boot 2023.07.02 - 8GB

Oracle Linux Server 9.4 - 5.15.0-208.159.3.2.el9uek.aarch64 - GCC 11.4.1 20231218

5 Systems - 28 Benchmark Results

ARMv7 rev 3 - BCM2835 Raspberry Pi 4 Model B Rev 1.1 - 4096MB

Raspbian 10 - 4.19.50-v7l+ - LXDE 0.10.0

Most Popular Test Results

OpenBenchmarking.org Results Compare

7 Systems - 28 Benchmark Results

ARMv7 rev 3 - BCM2835 Raspberry Pi 4 Model B Rev 1.1 - 4096MB

Raspbian 10 - 4.19.50-v7l+ - LXDE 0.10.0

14 Systems - 36 Benchmark Results

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

Ubuntu 18.04 - 4.15.0-1021-aws - GCC 7.3.0

8 Systems - 28 Benchmark Results

ARMv7 rev 3 - BCM2835 Raspberry Pi 4 Model B Rev 1.1 - 2048MB

Raspbian 10 - 4.19.50-v7l+ - LXDE 0.10.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

8 Systems - 76 Benchmark Results

ARMv8 rev 0 - jetson-xavier - 16384MB

Ubuntu 18.04 - 4.9.108-tegra - Unity 7.5.0

1 System - 16 Benchmark Results

Intel Core i7-10510U - SLIMBOOK PROX14-10 - Intel Device 02ef

Ubuntu 20.04 - 5.4.0-33-generic - GNOME Shell 3.36.2

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

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

3 Systems - 36 Benchmark Results

16 x AMD EPYC - QEMU Standard PC - Intel 440FX 82441FX PMC

Ubuntu 18.10 - 4.18.0-12-generic - GNOME Shell 3.30.1

8 Systems - 246 Benchmark Results

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

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

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

Find More Test Results