- Sort Score
- Result 10 results
- Languages All
Results 21 - 23 of 23 for resetTimer (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go
b.Fatalf("parse selector: %v", err) } pred := storage.SelectionPredicate{ Label: labels.Everything(), Field: parsedField, } // now we start benchmarking b.ResetTimer() for i := 0; i < b.N; i++ { result := &example.PodList{} err = cacher.GetList(context.TODO(), "pods", storage.ListOptions{ Predicate: pred, Recursive: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 82.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/controller_test.go
temp := model.Service{ Hostname: host.Name(fmt.Sprintf("foo%d.com", i)), Resolution: model.ClientSideLB, DefaultAddress: constants.UnspecifiedIP, } inServices[i] = &temp } t.ResetTimer() for i := 0; i < t.N; i++ { autoAllocateIPs(inServices) } } // Validate that ipaddress allocation is deterministic based on hash. func Test_autoAllocateIP_deterministic(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 92.9K bytes - Viewed (0) -
src/testing/testing.go
// // If a benchmark needs some expensive setup before running, the timer // may be reset: // // func BenchmarkBigLen(b *testing.B) { // big := NewBig() // b.ResetTimer() // for range b.N { // big.Len() // } // } // // If a benchmark needs to test performance in a parallel setting, it may use
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0)