Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for ReportMetric (0.13 sec)

  1. src/runtime/metrics_test.go

    	b.ReportMetric(0, "ns/op")
    	b.ReportMetric(0, "B/op")
    	b.ReportMetric(0, "allocs/op")
    
    	// Sort latencies then report percentiles.
    	sort.Slice(latencies, func(i, j int) bool {
    		return latencies[i] < latencies[j]
    	})
    	b.ReportMetric(float64(latencies[len(latencies)*50/100]), "p50-ns")
    	b.ReportMetric(float64(latencies[len(latencies)*90/100]), "p90-ns")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  2. pilot/pkg/xds/bench_test.go

    			// Cannot use b.Logf, it truncates
    			benchmarkScope.Infof("Generated: %d %s", i, s)
    		}
    	}
    	bytes := 0
    	for _, r := range m {
    		bytes += len(r.GetResource().Value)
    	}
    	b.ReportMetric(float64(bytes)/1000, "kb/msg")
    	b.ReportMetric(float64(len(m)), "resources/msg")
    	b.StartTimer()
    }
    
    func createEndpointsConfig(numEndpoints, numServices, numNetworks int) []config.Config {
    	result := make([]config.Config, 0, numServices)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 22 18:13:40 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

    			// requests for a single entry, so we do both.
    			s.doAuthForTokenN(r.Intn(s.tokenCount), a)
    			s.doAuthForTokenN(0, a)
    		}
    	})
    	b.StopTimer()
    
    	b.ReportMetric(float64(lookups)/float64(b.N), "lookups/op")
    }
    
    // Add a test version of the audit context with a pre-populated event for easy annotation
    // extraction.
    func withAudit(ctx context.Context) context.Context {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  4. src/runtime/pprof/pprof_test.go

    				if i == 0 {
    					ready.Done()
    				}
    				if ctx.Err() == nil {
    					go churn(i + 1)
    				}
    			}
    			go func() {
    				churn(0)
    			}()
    			ready.Wait()
    
    			fn(b)
    			b.ReportMetric(float64(atomic.LoadInt64(&count))/float64(b.N), "concurrent_launches/op")
    		}
    	}
    
    	benchWriteTo := func(b *testing.B) {
    		goroutineProf := Lookup("goroutine")
    		b.ResetTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*B).Fatalf", Method, 0},
    		{"(*B).Helper", Method, 9},
    		{"(*B).Log", Method, 0},
    		{"(*B).Logf", Method, 0},
    		{"(*B).Name", Method, 8},
    		{"(*B).ReportAllocs", Method, 1},
    		{"(*B).ReportMetric", Method, 13},
    		{"(*B).ResetTimer", Method, 0},
    		{"(*B).Run", Method, 7},
    		{"(*B).RunParallel", Method, 3},
    		{"(*B).SetBytes", Method, 0},
    		{"(*B).SetParallelism", Method, 3},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. api/go1.13.txt

    pkg syscall (windows-amd64), type SysProcAttr struct, ThreadAttributes *SecurityAttributes
    pkg testing, func Init()
    pkg testing, method (*B) ReportMetric(float64, string)
    pkg testing, type BenchmarkResult struct, Extra map[string]float64
    pkg text/template, method (ExecError) Unwrap() error
    pkg time, method (Duration) Microseconds() int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
Back to top