18 Commits

Author SHA1 Message Date
xtqqczze a71ea11902 chore(deps): update rust crate rand to v0.8.6 2026-05-05 09:07:02 +02:00
xtqqczze ada3aa6485 chore(deps): removed unused deps 2026-04-15 08:57:30 +02:00
xtqqczze 86241dea93 chore(deps): update rust crate codspeed-criterion-compat to v4.4.1 2026-03-27 16:25:07 +01:00
Sylvestre Ledru 395cef5d78 bench: exclude non-deterministic num-primes benchmarks by default
num-primes uses thread_rng() internally, making its benchmarks
non-deterministic and causing false regressions in CodSpeed CI.

Remove num-primes from default features so it's excluded from CI
benchmarks. All num-primes bench_functions are gated behind
#[cfg(feature = "num-primes")] - use --features num-primes to
include them for local comparison.
2026-03-24 22:59:00 +01:00
Sylvestre Ledru 522bad3b48 bench: gate all num-primes benchmarks behind feature flag
num-primes uses thread_rng() internally, making its benchmarks
non-deterministic. CodSpeed's instruction-counting simulation
amplifies this into huge false regressions. Gate all num-primes
bench_functions with #[cfg(feature = "num-primes")] and build
without the feature in CodSpeed CI.
2026-03-24 22:59:00 +01:00
Sylvestre Ledru 0eacd225eb remove NumberTheory - used only for benchmark) 2026-02-23 09:23:35 +01:00
Sylvestre Ledru 3cf6fa1b50 bench: use seeded RNG for glass_pumpkin prime generation benchmarks
Use glass_pumpkin's from_rng() API with a seeded ChaCha8Rng instead of
new() which uses OsRng internally, making these benchmarks deterministic.
num-primes doesn't expose an RNG parameter so it remains non-deterministic.
2026-02-20 14:09:19 +01:00
Sylvestre Ledru 3dfc6debc3 bench: use seeded RNG for deterministic benchmark results
Replace thread_rng() with StdRng::seed_from_u64() to ensure benchmarks
use the same random inputs across runs, eliminating variance from
different random numbers having vastly different primality testing times.
2026-02-19 22:04:23 +01:00
Chad Brewbaker 17b85c386d Fixing broken tests on aarch64 targets (#21) 2026-02-19 08:17:51 +01:00
Sylvestre Ledru 425b31155c Merge pull request #50 from xtqqczze/msrv
add rust-version to cargo workspace
2026-02-19 07:21:09 +01:00
xtqqczze ef180b1f94 add rust-version to cargo workspace 2026-02-18 21:38:55 +00:00
Sylvestre Ledru ad3216e03d unbreak the benchmark in the CI 2026-02-18 22:08:57 +01:00
codspeed-hq[bot] e3ec4ccf69 Setup CodSpeed for continuous performance monitoring
- Replace criterion 0.3 with codspeed-criterion-compat 4.3.0 using
  dependency renaming (no benchmark code changes needed)
- Add CodSpeed GitHub Actions workflow with OIDC authentication
- Add CodSpeed badge to README
2026-02-18 20:43:07 +00:00
Sylvestre Ledru 3704abf843 clippy: fix the more complex warnings 2026-02-18 21:09:06 +01:00
Jacob Zhong ce7e3db207 Cargo fmt 2022-04-18 11:41:43 -04:00
Jacob Zhong 8bc171fa11 Minor fixes 2022-04-18 11:19:25 -04:00
Jacob Zhong 46ea4af775 Add more benchmarks 2022-04-18 10:30:23 -04:00
Jacob Zhong c1e530eeda Add more benchmarks 2022-04-17 22:22:05 -04:00