-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Georg Bramm
committed
Mar 19, 2022
1 parent
7be5302
commit a26275e
Showing
6 changed files
with
168 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
extern crate rabe; | ||
#[macro_use] | ||
extern crate criterion; | ||
|
||
use criterion::{criterion_group, criterion_main, Criterion, Throughput, BenchmarkId}; | ||
use rabe::schemes; | ||
|
||
|
||
fn criterion_compare_schemes_setup(c: &mut Criterion) { | ||
let mut group = c.benchmark_group("setup"); | ||
group.bench_with_input(BenchmarkId::new("AC17", 1), &1_usize, |b, &_usize| { | ||
b.iter(|| { | ||
schemes::ac17::setup() | ||
} ); | ||
}); | ||
group.bench_with_input(BenchmarkId::new("AW11", 1), &1_usize, |b, &_usize| { | ||
b.iter(|| { | ||
schemes::aw11::setup() | ||
} ); | ||
}); | ||
group.bench_with_input(BenchmarkId::new("BDABE", 1), &1_usize, |b, &_usize| { | ||
b.iter(|| { | ||
schemes::bdabe::setup() | ||
} ); | ||
}); | ||
group.bench_with_input(BenchmarkId::new("BSW", 1), &1_usize, |b, &_usize| { | ||
b.iter(|| { | ||
schemes::bsw::setup() | ||
} ); | ||
}); | ||
group.bench_with_input(BenchmarkId::new("LSW", 1), &1_usize, |b, &_usize| { | ||
b.iter(|| { | ||
schemes::lsw::setup() | ||
} ); | ||
}); | ||
group.bench_with_input(BenchmarkId::new("MKE08", 1), &1_usize, |b, &_usize| { | ||
b.iter(|| { | ||
schemes::mke08::setup() | ||
} ); | ||
}); | ||
group.bench_with_input(BenchmarkId::new("YCT14", 1), &1_usize, |b, &_usize| { | ||
b.iter(|| { | ||
schemes::yct14::setup((0..10).into_iter().map(|v: usize| v.to_string()).collect()) | ||
} ); | ||
}); | ||
group.finish(); | ||
} | ||
|
||
criterion_group!(benches, | ||
criterion_compare_schemes_setup, | ||
); | ||
|
||
criterion_main!(benches); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "rabe-console" | ||
version = "0.2.5" | ||
description = "ABE Schemes implemented in rust." | ||
version = "0.2.7" | ||
description = "Console App for the ABE Schemes implemented in rabe." | ||
authors = [ | ||
"Schanzenbach, Martin <[email protected]>", | ||
"Bramm, Georg <[email protected]>", | ||
|
@@ -22,13 +22,12 @@ path = "src/mod.rs" | |
base64 = "0.10.1" | ||
deflate = "0.9.0" | ||
inflate = "0.4.5" | ||
blake2-rfc = "0.2.17" | ||
clap = "2.33.3" | ||
rand = "0.7.3" | ||
serde = "1.0.118" | ||
serde_json = "1.0.60" | ||
serde_cbor = "0.11.1" | ||
serde_derive = "1.0.118" | ||
rand = "0.8.5" | ||
serde = "1.0.136" | ||
serde_derive = "1.0.136" | ||
serde_json = "1.0.79" | ||
serde_cbor = "0.11.2" | ||
pest = "2.0" | ||
pest_derive = "2.0" | ||
rabe = { path = "../" } |
Oops, something went wrong.