Skip to content

Commit

Permalink
Add NoFilter to benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Dec 22, 2023
1 parent 846e011 commit 228cc87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions attribute/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ func BenchmarkFiltering(b *testing.B) {
}
}

b.Run("NoFilter", run(nil))
b.Run("NoFiltered", run(func(attribute.KeyValue) bool { return true }))
b.Run("Filtered", run(func(kv attribute.KeyValue) bool { return kv.Key == "A" }))
b.Run("AllDropped", run(func(kv attribute.KeyValue) bool { return false }))
Expand Down

0 comments on commit 228cc87

Please sign in to comment.