Add tracer key for tracing transaction path through the network (#15732)

This commit is contained in:
carllin
2021-03-08 19:31:00 -08:00
committed by GitHub
parent 331c45decf
commit 2bee9435f3
8 changed files with 131 additions and 96 deletions

View File

@ -13,13 +13,13 @@ fn bench_sigverify(bencher: &mut Bencher) {
let tx = test_tx();
// generate packet vector
let batches = to_packets_chunked(&std::iter::repeat(tx).take(128).collect::<Vec<_>>(), 128);
let mut batches = to_packets_chunked(&std::iter::repeat(tx).take(128).collect::<Vec<_>>(), 128);
let recycler = Recycler::new_without_limit("");
let recycler_out = Recycler::new_without_limit("");
// verify packets
bencher.iter(|| {
let _ans = sigverify::ed25519_verify(&batches, &recycler, &recycler_out);
let _ans = sigverify::ed25519_verify(&mut batches, &recycler, &recycler_out);
})
}