Skip to content
Snippets Groups Projects

work on the benchmarks

Merged STEVAN Antoine requested to merge benchmarks into main
1 file
+ 4
6
Compare changes
  • Side-by-side
  • Inline
@@ -3,17 +3,15 @@ use std::time::Instant;
use ark_ec::CurveGroup;
use ark_ff::PrimeField;
use ark_poly::{univariate::DensePolynomial, DenseUVPolynomial};
use ark_std::{ops::Div, rand::RngCore};
use ark_std::ops::Div;
use komodo::zk;
use rand::rngs::ThreadRng;
fn run<F, G, P, R>(degrees: &Vec<usize>, curve: &str)
fn run<F, G, P>(degrees: &Vec<usize>, curve: &str)
where
F: PrimeField,
G: CurveGroup<ScalarField = F>,
P: DenseUVPolynomial<F>,
R: RngCore,
for<'a, 'b> &'a P: Div<&'b P, Output = P>,
{
eprintln!("curve: {}", curve);
@@ -40,7 +38,7 @@ where
end_time.duration_since(start_time).as_nanos()
);
}
eprintln!("");
eprintln!();
}
/// ## example
@@ -53,7 +51,7 @@ where
/// ```
macro_rules! measure {
($c:ident, $d:ident, G1=$g:ident, name=$n:expr) => {
run::<$c::Fr, $c::$g, DensePolynomial<$c::Fr>, ThreadRng>(&$d, $n);
run::<$c::Fr, $c::$g, DensePolynomial<$c::Fr>>(&$d, $n);
};
}
Loading