Struct kimchi::bench::BenchmarkCtx
source · pub struct BenchmarkCtx {
pub num_gates: usize,
/* private fields */
}
Fields§
§num_gates: usize
Implementations§
source§impl BenchmarkCtx
impl BenchmarkCtx
pub fn srs_size(&self) -> usize
sourcepub fn new(srs_size_log2: u32) -> Self
pub fn new(srs_size_log2: u32) -> Self
This will create a context that allows for benchmarks of num_gates
gates (multiplication gates).
sourcepub fn create_proof(&self) -> (ProverProof<Vesta, OpeningProof<Vesta>>, Vec<Fp>)
pub fn create_proof(&self) -> (ProverProof<Vesta, OpeningProof<Vesta>>, Vec<Fp>)
Produces a proof
pub fn batch_verification( &self, batch: &[(ProverProof<Vesta, OpeningProof<Vesta>>, Vec<Fp>)] )
Auto Trait Implementations§
impl RefUnwindSafe for BenchmarkCtx
impl Send for BenchmarkCtx
impl Sync for BenchmarkCtx
impl Unpin for BenchmarkCtx
impl UnwindSafe for BenchmarkCtx
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more