From 9a5291c71703b7a567d58ba321cb002c6e6b485d Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Thu, 8 Oct 2020 18:21:30 +0200 Subject: [PATCH] fix bench names --- src/blockdata/transaction.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blockdata/transaction.rs b/src/blockdata/transaction.rs index c9ce726b..78800335 100644 --- a/src/blockdata/transaction.rs +++ b/src/blockdata/transaction.rs @@ -1256,7 +1256,7 @@ mod benches { const SOME_TX: &'static str = "0100000001a15d57094aa7a21a28cb20b59aab8fc7d1149a3bdbcddba9c622e4f5f6a99ece010000006c493046022100f93bb0e7d8db7bd46e40132d1f8242026e045f03a0efe71bbb8e3f475e970d790221009337cd7f1f929f00cc6ff01f03729b069a7c21b59b1736ddfee5db5946c5da8c0121033b9b137ee87d5a812d6f506efdd37f0affa7ffc310711c06c7f3e097c9447c52ffffffff0100e1f505000000001976a9140389035a9225b3839e2bbf32d826a1e222031fd888ac00000000"; #[bench] - pub fn bench_block_get_size(bh: &mut Bencher) { + pub fn bench_transaction_get_size(bh: &mut Bencher) { let raw_tx = Vec::from_hex(SOME_TX).unwrap(); let mut tx: Transaction = deserialize(&raw_tx).unwrap(); @@ -1267,7 +1267,7 @@ mod benches { } #[bench] - pub fn bench_block_serialize(bh: &mut Bencher) { + pub fn bench_transaction_serialize(bh: &mut Bencher) { let raw_tx = Vec::from_hex(SOME_TX).unwrap(); let tx: Transaction = deserialize(&raw_tx).unwrap(); @@ -1281,7 +1281,7 @@ mod benches { } #[bench] - pub fn bench_block_serialize_logic(bh: &mut Bencher) { + pub fn bench_transaction_serialize_logic(bh: &mut Bencher) { let raw_tx = Vec::from_hex(SOME_TX).unwrap(); let tx: Transaction = deserialize(&raw_tx).unwrap(); @@ -1292,7 +1292,7 @@ mod benches { } #[bench] - pub fn bench_block_deserialize(bh: &mut Bencher) { + pub fn bench_transaction_deserialize(bh: &mut Bencher) { let raw_tx = Vec::from_hex(SOME_TX).unwrap(); bh.iter(|| {