Skip to content

Commit b340dea

Browse files
committed
Update benches
1 parent 57f88c0 commit b340dea

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

benches/uint.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ use criterion::{
33
BatchSize, BenchmarkGroup, BenchmarkId, Criterion, criterion_group, criterion_main,
44
};
55
use crypto_bigint::modular::SafeGcdInverter;
6-
use crypto_bigint::{
7-
Limb, NonZero, Odd, OddUint, PrecomputeInverter, Random, RandomBits, RandomMod, Reciprocal,
8-
U128, U256, U512, U1024, U2048, U4096, Uint,
9-
};
6+
use crypto_bigint::{Limb, NonZero, Odd, OddUint, PrecomputeInverter, Random, RandomBits, RandomMod, Reciprocal, U128, U256, U512, U1024, U2048, U4096, Uint, Gcd};
107
use rand_chacha::ChaCha8Rng;
118
use rand_core::{RngCore, SeedableRng};
129
use std::hint::black_box;
@@ -383,19 +380,6 @@ fn gcd_bench<const LIMBS: usize, const UNSAT_LIMBS: usize>(
383380
)
384381
});
385382

386-
g.bench_function(BenchmarkId::new("bingcd", LIMBS), |b| {
387-
b.iter_batched(
388-
|| {
389-
(
390-
Uint::<LIMBS>::random(&mut rng),
391-
Uint::<LIMBS>::random(&mut rng),
392-
)
393-
},
394-
|(f, g)| black_box(Uint::bingcd(&f, &g)),
395-
BatchSize::SmallInput,
396-
)
397-
});
398-
399383
g.bench_function(BenchmarkId::new("bingcd (classic)", LIMBS), |b| {
400384
b.iter_batched(
401385
|| {

0 commit comments

Comments
 (0)