Skip to content

Commit 02729b1

Browse files
committed
more benchmark
Signed-off-by: Alan Protasio <[email protected]>
1 parent efcd9b3 commit 02729b1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pkg/cortexpb/timeseries_test.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,18 @@ func BenchmarkMarshallWriteRequest(b *testing.B) {
9595
clean: func(in interface{}) {},
9696
},
9797
{
98-
name: "pool",
98+
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",
99110
writeRequestFactory: func() proto.Marshaler {
100111
w := PreallocWriteRequestFromPool()
101112
w.Timeseries = ts

0 commit comments

Comments
 (0)