We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efcd9b3 commit 02729b1Copy full SHA for 02729b1
pkg/cortexpb/timeseries_test.go
@@ -95,7 +95,18 @@ func BenchmarkMarshallWriteRequest(b *testing.B) {
95
clean: func(in interface{}) {},
96
},
97
{
98
- name: "pool",
+ name: "byte pool",
99
+ writeRequestFactory: func() proto.Marshaler {
100
+ w := &PreallocWriteRequest{}
101
+ w.Timeseries = ts
102
+ return w
103
+ },
104
+ clean: func(in interface{}) {
105
+ ReuseWriteRequest(in.(*PreallocWriteRequest))
106
107
108
+ {
109
+ name: "byte and write pool",
110
writeRequestFactory: func() proto.Marshaler {
111
w := PreallocWriteRequestFromPool()
112
w.Timeseries = ts
0 commit comments