mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-08 20:40:31 +00:00
Remove old 'double-and-add' benchmark
This commit is contained in:
parent
d70c8cc0d7
commit
58708c2c20
1 changed files with 1 additions and 9 deletions
|
|
@ -20,18 +20,10 @@ fn criterion_benchmark(c: &mut Criterion) {
|
||||||
let coeff_1 = Fp::random();
|
let coeff_1 = Fp::random();
|
||||||
let coeff_2 = Fp::random();
|
let coeff_2 = Fp::random();
|
||||||
|
|
||||||
c.bench_function("shared double-and-add", |b| {
|
|
||||||
b.iter(|| {
|
|
||||||
for (g_lo, g_hi) in g_lo.iter().zip(g_hi.iter()) {
|
|
||||||
small_multiexp(&[black_box(coeff_1), black_box(coeff_2)], &[*g_lo, *g_hi]);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
c.bench_function("double-and-add", |b| {
|
c.bench_function("double-and-add", |b| {
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
for (g_lo, g_hi) in g_lo.iter().zip(g_hi.iter()) {
|
for (g_lo, g_hi) in g_lo.iter().zip(g_hi.iter()) {
|
||||||
let _ = ((*g_lo) * coeff_1) + &((*g_hi) * coeff_2);
|
small_multiexp(&[black_box(coeff_1), black_box(coeff_2)], &[*g_lo, *g_hi]);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue