- Sort Score
- Result 10 results
- Languages All
Results 11 - 18 of 18 for resetTimer (1.98 sec)
-
src/crypto/tls/handshake_server_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 64.7K bytes - Viewed (0) -
src/strings/strings_test.go
tests := []struct { name string input string }{ {"Valid", "typical"}, {"InvalidASCII", "foo\xffbar"}, {"InvalidNonASCII", "日本語\xff日本語"}, } replacement := "\uFFFD" b.ResetTimer() for _, test := range tests { b.Run(test.name, func(b *testing.B) { for i := 0; i < b.N; i++ { ToValidUTF8(test.input, replacement) } }) } } type predicate struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
pkg/controller/replicaset/replica_set_test.go
unrelatedRS.ObjectMeta.OwnerReferences[0].UID = types.UID(fmt.Sprintf("%d", i)) informers.Apps().V1().ReplicaSets().Informer().GetIndexer().Add(unrelatedRS) } b.ReportAllocs() b.ResetTimer() for n := 0; n < b.N; n++ { gotRSs := controller.getReplicaSetsWithSameController(logger, targetRS) if len(gotRSs) != 2 { b.Errorf("Incorrect ReplicaSets number, expected 2, got: %d", len(gotRSs)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 69.2K bytes - Viewed (0) -
cmd/object-api-listobjects_test.go
_, err = obj.PutObject(context.Background(), bucket, key, mustGetPutObjReader(b, bytes.NewBufferString(key), int64(len(key)), "", ""), ObjectOptions{}) if err != nil { b.Fatal(err) } } b.ResetTimer() // List the buckets over and over and over. for i := 0; i < b.N; i++ { _, err = obj.ListObjects(context.Background(), bucket, "", "obj9000", "", -1) if err != nil { b.Fatal(err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 11:07:40 UTC 2024 - 73.1K bytes - Viewed (0) -
pilot/pkg/model/push_context_test.go
} index.shardsBySvc[string(svc.Hostname)][svc.Attributes.Namespace] = &EndpointShards{ ServiceAccounts: sets.New("spiffe://cluster.local/ns/def/sa/sa1", "spiffe://cluster.local/ns/def/sa/sa2"), } } b.ResetTimer() for n := 0; n < b.N; n++ { ps.initServiceAccounts(env, services) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 95.3K bytes - Viewed (0) -
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)