From e2dd4781f5bb9e77eda0ce9deba8281599e753e1 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 1 Feb 2018 15:23:48 -0800 Subject: [PATCH] bench_test: report allocations --- bench_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bench_test.go b/bench_test.go index 6ad9074b21..3755db28b6 100644 --- a/bench_test.go +++ b/bench_test.go @@ -40,6 +40,7 @@ func BenchmarkPathPacketConstruction(b *testing.B) { } d, _ := btcec.PrivKeyFromBytes(btcec.S256(), bytes.Repeat([]byte{'A'}, 32)) + b.ReportAllocs() b.StartTimer() for i := 0; i < b.N; i++ { @@ -58,6 +59,7 @@ func BenchmarkProcessPacket(b *testing.B) { if err != nil { b.Fatalf("unable to create test route: %v", err) } + b.ReportAllocs() b.StartTimer() var (