Skip to content

Commit

Permalink
bench_test: report allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
cfromknecht committed Feb 1, 2018
1 parent d8e664f commit e2dd478
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand All @@ -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 (
Expand Down

0 comments on commit e2dd478

Please sign in to comment.