- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for benchTestCases (0.21 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/encoder_with_allocator_test.go
for _, tc := range benchTestCases() { b.Run(tc.name, func(b *testing.B) { b.ReportAllocs() for n := 0; n < b.N; n++ { err := target.Encode(tc.obj, ioutil.Discard) if err != nil { b.Fatal(err) } } }) } } func benchmarkEncodeWithAllocatorFor(b *testing.B, target runtime.EncoderWithAllocator) { for _, tc := range benchTestCases() { b.Run(tc.name, func(b *testing.B) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 13:38:29 UTC 2022 - 3.6K bytes - Viewed (0)