const benchmarkSeed …
func TestSerializeObjectParallel(t *testing.T) { … }
func TestSerializeObject(t *testing.T) { … }
func randTime(t *time.Time, r *rand.Rand) { … }
func randIP(s *string, r *rand.Rand) { … }
func randPod(b *testing.B, pod *v1.Pod, r *rand.Rand) { … }
func benchmarkItems(b *testing.B, file string, n int) *v1.PodList { … }
func toProtoBuf(b *testing.B, list *v1.PodList) []byte { … }
func toJSON(b *testing.B, list *v1.PodList) []byte { … }
func benchmarkSerializeObject(b *testing.B, payload []byte) { … }
func BenchmarkSerializeObject1000PodsPB(b *testing.B) { … }
func BenchmarkSerializeObject10000PodsPB(b *testing.B) { … }
func BenchmarkSerializeObject100000PodsPB(b *testing.B) { … }
func BenchmarkSerializeObject1000PodsJSON(b *testing.B) { … }
func BenchmarkSerializeObject10000PodsJSON(b *testing.B) { … }
func BenchmarkSerializeObject100000PodsJSON(b *testing.B) { … }
type fakeResponseRecorder …
func (frw *fakeResponseRecorder) Write(buf []byte) (int, error) { … }
type fakeEncoder …
func (e *fakeEncoder) Encode(obj runtime.Object, w io.Writer) error { … }
func (e *fakeEncoder) Identifier() runtime.Identifier { … }
func gzipContent(data []byte, level int) []byte { … }