diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-19 16:32:25 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-20 12:24:03 +0200 |
commit | 5e6e5b8821c0f4cb4154eb4bfeabe90ddf56445e (patch) | |
tree | 6cee14584838bea96b569cf22d6ca3864f715c95 | |
parent | c37daad91ebab5ac5b74c34631491ffd5999c87f (diff) |
bench: Fix benchmark id for decrypt_message.
-rw-r--r-- | openpgp/benches/decrypt_message.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/benches/decrypt_message.rs b/openpgp/benches/decrypt_message.rs index ad113101..e2ed4e5e 100644 --- a/openpgp/benches/decrypt_message.rs +++ b/openpgp/benches/decrypt_message.rs @@ -40,7 +40,7 @@ fn bench_decrypt(c: &mut Criterion) { let encrypted = encrypt::encrypt_with_password(m, PASSWORD).unwrap(); group.throughput(Throughput::Bytes(encrypted.len() as u64)); group.bench_with_input( - BenchmarkId::new("password", encrypted.len()), + BenchmarkId::new("password", m.len()), &encrypted, |b, e| b.iter(|| decrypt_password(&e)), ); |