Skip to content

Commit d891327

Browse files
author
Kevin Wiesmueller
committed
add RecursiveDifference to benchmarks
1 parent 570c5cb commit d891327

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fieldpath/set_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ func BenchmarkFieldSet(b *testing.B) {
131131
randOperand().Difference(randOperand())
132132
}
133133
})
134+
b.Run(fmt.Sprintf("recursive-difference-%v", here.size), func(b *testing.B) {
135+
b.ReportAllocs()
136+
for i := 0; i < b.N; i++ {
137+
randOperand().RecursiveDifference(randOperand())
138+
}
139+
})
134140
}
135141
}
136142

0 commit comments

Comments
 (0)