Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for printerFunc (0.08 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/bench_test.go

    }
    
    func benchmarkPrinter(b *testing.B, printerFunc func() ResourcePrinter, data runtime.Object) {
    	b.ReportAllocs()
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			buf := &bytes.Buffer{}
    			if err := printerFunc().PrintObj(data, buf); err != nil {
    				b.Errorf("PrintObj failed: %v", err)
    			}
    		}
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 30 00:36:07 UTC 2022
    - 4.2K bytes
    - Viewed (0)
Back to top