Skip to content

Commit e2dd478

Browse files
committed
bench_test: report allocations
1 parent d8e664f commit e2dd478

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bench_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func BenchmarkPathPacketConstruction(b *testing.B) {
4040
}
4141

4242
d, _ := btcec.PrivKeyFromBytes(btcec.S256(), bytes.Repeat([]byte{'A'}, 32))
43+
b.ReportAllocs()
4344
b.StartTimer()
4445

4546
for i := 0; i < b.N; i++ {
@@ -58,6 +59,7 @@ func BenchmarkProcessPacket(b *testing.B) {
5859
if err != nil {
5960
b.Fatalf("unable to create test route: %v", err)
6061
}
62+
b.ReportAllocs()
6163
b.StartTimer()
6264

6365
var (

0 commit comments

Comments
 (0)