mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
net/packet: record allocations in benchmark.
This commit is contained in:
parent
093431f5dd
commit
6e52633c53
@ -266,6 +266,7 @@ func BenchmarkDecode(b *testing.B) {
|
||||
|
||||
for _, bench := range benches {
|
||||
b.Run(bench.name, func(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
var p Parsed
|
||||
p.Decode(bench.buf)
|
||||
|
Loading…
Reference in New Issue
Block a user