Crates.io | prime_bench |
lib.rs | prime_bench |
version | 0.1.2 |
source | src |
created_at | 2023-05-31 15:46:38.167994 |
updated_at | 2023-05-31 21:10:49.94847 |
description | A prime finding benchmarking tool |
homepage | https://github.com/Lowband21/prime_bench |
repository | https://github.com/Lowband21/prime_bench |
max_upload_size | |
id | 878900 |
size | 103,243 |
Do you have hardware just sitting there after burning a hole in your wallet? Do you want to see it sweat? Have I got the program for you, Prime Bench is a benchmark program written in Rust, optimized for multi-threaded performance and single-threaded use. The program aims to search for prime numbers using a Monte Carlo method based on the Solovay-Strassen primality test, and in the process, measure the performance of your system. The program allows users to perform this benchmark in either single core or all core mode, giving flexibility in terms of understanding the capability of the hardware in both scenarios.
First, clone the repository:
git clone https://github.com/YourGitHub/prime_explorer.git
cd prime_bench
Then, run the project with cargo:
cargo run --release
The program will prompt you to choose between "Multi-thread" or "Single-thread". Depending on your choice, it will run the program utilizing either multiple cores or a single core.
Next, you will be asked to enter a scale factor. This number is a multiplier for the base workload per core, allowing you to adjust the duration and intensity of the benchmark.
The program will then generate and test random numbers for primality. Finally, it will output the number of primes found, total attempts made, time taken, and the score which indicates the number of tries per second.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.