diff --git a/internal/deepprint/deepprint_test.go b/internal/deepprint/deepprint_test.go index d7576f27a..0b2d25423 100644 --- a/internal/deepprint/deepprint_test.go +++ b/internal/deepprint/deepprint_test.go @@ -62,3 +62,11 @@ func getVal() []interface{} { }, } } + +func BenchmarkHash(b *testing.B) { + b.ReportAllocs() + v := getVal() + for i := 0; i < b.N; i++ { + Hash(v) + } +}