From 5e6e5b8821c0f4cb4154eb4bfeabe90ddf56445e Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Mon, 19 Apr 2021 16:32:25 +0200 Subject: bench: Fix benchmark id for decrypt_message. --- openpgp/benches/decrypt_message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp/benches') 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)), ); -- cgit v1.2.3