Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
alxiong committed Jan 14, 2025
1 parent d7a8321 commit bc03506
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions poseidon2/benches/p2_native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//! `cargo bench --bench p2_native`
#[macro_use]
extern crate criterion;
use std::time::Duration;

use ark_std::{test_rng, UniformRand};
use criterion::Criterion;
Expand All @@ -17,7 +16,7 @@ use jf_poseidon2::{
// BLS12-381 scalar field, state size = 2
fn bls2(c: &mut Criterion) {
let mut group = c.benchmark_group("Poseidon2 over (Bls12_381::Fr, t=2)");
group.sample_size(10).measurement_time(Duration::new(20, 0));
group.sample_size(10);
type Fr = ark_bls12_381::Fr;
let rng = &mut test_rng();

Expand All @@ -43,7 +42,7 @@ fn bls2(c: &mut Criterion) {
// BLS12-381 scalar field, state size = 3
fn bls3(c: &mut Criterion) {
let mut group = c.benchmark_group("Poseidon2 over (Bls12_381::Fr, t=3)");
group.sample_size(10).measurement_time(Duration::new(20, 0));
group.sample_size(10);
type Fr = ark_bls12_381::Fr;
let rng = &mut test_rng();

Expand All @@ -69,7 +68,7 @@ fn bls3(c: &mut Criterion) {
// BN254 scalar field, state size = 3
fn bn3(c: &mut Criterion) {
let mut group = c.benchmark_group("Poseidon2 over (Bn254::Fr, t=3)");
group.sample_size(10).measurement_time(Duration::new(20, 0));
group.sample_size(10);
type Fr = ark_bn254::Fr;
let rng = &mut test_rng();

Expand Down

0 comments on commit bc03506

Please sign in to comment.