Browse Source

Make benchmarks compile, and check them in CI

master
Pratyush Mishra 4 years ago
parent
commit
2298df2e78
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      cp-benches/benches/crypto_primitives/comm.rs
  2. +1
    -1
      cp-benches/benches/crypto_primitives/crh.rs
  3. +2
    -2
      cp-benches/benches/crypto_primitives/signature.rs

+ 1
- 1
cp-benches/benches/crypto_primitives/comm.rs

@ -3,7 +3,7 @@ use rand;
#[macro_use] #[macro_use]
extern crate criterion; extern crate criterion;
use algebra::{curves::edwards_bls12::EdwardsProjective as Edwards, UniformRand};
use algebra::{edwards_bls12::EdwardsProjective as Edwards, UniformRand};
use criterion::Criterion; use criterion::Criterion;
use crypto_primitives::commitment::{pedersen::*, CommitmentScheme}; use crypto_primitives::commitment::{pedersen::*, CommitmentScheme};

+ 1
- 1
cp-benches/benches/crypto_primitives/crh.rs

@ -3,7 +3,7 @@ use rand;
#[macro_use] #[macro_use]
extern crate criterion; extern crate criterion;
use algebra::curves::edwards_bls12::EdwardsProjective as Edwards;
use algebra::edwards_bls12::EdwardsProjective as Edwards;
use criterion::Criterion; use criterion::Criterion;
use crypto_primitives::crh::{pedersen::*, FixedLengthCRH}; use crypto_primitives::crh::{pedersen::*, FixedLengthCRH};

+ 2
- 2
cp-benches/benches/crypto_primitives/signature.rs

@ -2,7 +2,7 @@
extern crate criterion; extern crate criterion;
mod affine { mod affine {
use algebra::curves::edwards_bls12::EdwardsAffine as Edwards;
use algebra::edwards_bls12::EdwardsAffine as Edwards;
use blake2::Blake2s; use blake2::Blake2s;
use criterion::Criterion; use criterion::Criterion;
use crypto_primitives::signature::{schnorr::*, SignatureScheme}; use crypto_primitives::signature::{schnorr::*, SignatureScheme};
@ -90,7 +90,7 @@ mod affine {
} }
mod projective { mod projective {
use algebra::curves::edwards_bls12::EdwardsProjective as Edwards;
use algebra::edwards_bls12::EdwardsProjective as Edwards;
use blake2::Blake2s; use blake2::Blake2s;
use criterion::Criterion; use criterion::Criterion;
use crypto_primitives::signature::{schnorr::*, SignatureScheme}; use crypto_primitives::signature::{schnorr::*, SignatureScheme};

Loading…
Cancel
Save