Skip to content

Commit

Permalink
update bench
Browse files Browse the repository at this point in the history
  • Loading branch information
benr-ml committed Oct 2, 2023
1 parent a05cca1 commit 242fd74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fastcrypto-tbls/benches/dkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use criterion::{criterion_group, criterion_main, BenchmarkGroup, Criterion};
use fastcrypto::groups::{bls12381, ristretto255};
use fastcrypto_tbls::dkg::Party;
use fastcrypto_tbls::ecies;
use fastcrypto_tbls::nodes::{Node, PartyId};
use fastcrypto_tbls::nodes::{Node, Nodes, PartyId};
use fastcrypto_tbls::random_oracle::RandomOracle;
use itertools::iproduct;
use rand::thread_rng;
Expand Down Expand Up @@ -39,7 +39,7 @@ pub fn setup_party(
.collect();
Party::<G, EG>::new(
keys.get(id as usize).unwrap().1.clone(),
nodes,
Nodes::new(nodes).unwrap(),
threshold,
RandomOracle::new("dkg"),
&mut thread_rng(),
Expand All @@ -51,8 +51,8 @@ mod dkg_benches {
use super::*;

fn dkg(c: &mut Criterion) {
const SIZES: [u16; 2] = [100, 200];
const TOTAL_WEIGHTS: [u16; 3] = [2000, 3000, 5000];
const SIZES: [u16; 1] = [100];
const TOTAL_WEIGHTS: [u16; 4] = [2000, 2500, 3333, 5000];

{
let mut create: BenchmarkGroup<_> = c.benchmark_group("DKG create");
Expand Down

0 comments on commit 242fd74

Please sign in to comment.