- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for stopTimer (0.28 sec)
-
src/net/http/serve_test.go
} func BenchmarkClientServer(b *testing.B) { run(b, benchmarkClientServer, []testMode{http1Mode, https1Mode, http2Mode}) } func benchmarkClientServer(b *testing.B, mode testMode) { b.ReportAllocs() b.StopTimer() ts := newClientServerTest(b, mode, HandlerFunc(func(rw ResponseWriter, r *Request) { fmt.Fprintf(rw, "Hello world.\n") })).ts b.StartTimer() c := ts.Client() for i := 0; i < b.N; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go
if resp.StatusCode != http.StatusOK { b.Fatalf("unexpected response: %#v", resp) } if _, err := io.Copy(ioutil.Discard, resp.Body); err != nil { b.Fatalf("unable to read body") } } b.StopTimer() } func BenchmarkGetNoCompression(b *testing.B) { storage := map[string]rest.Storage{} simpleStorage := SimpleRESTStorage{ item: genericapitesting.Simple{ Other: "foo", }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:15:22 UTC 2023 - 158.7K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
b.Run(fmt.Sprintf("%v-%v", tt.name, podsInUnschedulablePods), func(b *testing.B) { logger, _ := ktesting.NewTestContext(b) for i := 0; i < b.N; i++ { b.StopTimer() c := testingclock.NewFakeClock(time.Now()) m := makeEmptyQueueingHintMapPerProfile() // - All plugins registered for events[0], which is NodeAdd. // - 1/2 of plugins registered for events[1]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0)