mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-08 21:00:40 +00:00
Fix bad import and feature specification in benchmarks.
This commit is contained in:
parent
d31df0aaa8
commit
dc4b77b551
2 changed files with 5 additions and 1 deletions
|
|
@ -52,11 +52,15 @@ version = "0.2"
|
||||||
hex = "^0.3"
|
hex = "^0.3"
|
||||||
bincode = "^0.9"
|
bincode = "^0.9"
|
||||||
criterion = "0.2"
|
criterion = "0.2"
|
||||||
|
rand = "0.6"
|
||||||
rand_os = "0.1"
|
rand_os = "0.1"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "ed25519_benchmarks"
|
name = "ed25519_benchmarks"
|
||||||
harness = false
|
harness = false
|
||||||
|
# This doesn't seem to work with criterion, cf. https://github.com/bheisler/criterion.rs/issues/344
|
||||||
|
# For now, we have to bench by doing `cargo bench --features="batch"`.
|
||||||
|
# required-features = ["batch"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std", "u64_backend"]
|
default = ["std", "u64_backend"]
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ mod ed25519_benches {
|
||||||
use ed25519_dalek::Signature;
|
use ed25519_dalek::Signature;
|
||||||
use ed25519_dalek::verify_batch;
|
use ed25519_dalek::verify_batch;
|
||||||
use rand::thread_rng;
|
use rand::thread_rng;
|
||||||
use rand::rngs::ThreadRng;
|
use rand::prelude::ThreadRng;
|
||||||
|
|
||||||
fn sign(c: &mut Criterion) {
|
fn sign(c: &mut Criterion) {
|
||||||
let mut csprng: ThreadRng = thread_rng();
|
let mut csprng: ThreadRng = thread_rng();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue