- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for resetTimer (0.21 sec)
-
pilot/pkg/model/sidecar_test.go
h := "default/" + wildcard + "host-" + strconv.Itoa(i) + ".com" hosts = append(hosts, h) } } istioListener := &networking.IstioEgressListener{ Hosts: hosts, } b.ResetTimer() for i := 0; i < b.N; i++ { convertIstioListenerToWrapper(ps, "default", istioListener) } } func TestComputeWildcardHostVirtualServiceIndex(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 07 09:38:49 UTC 2024 - 74.3K bytes - Viewed (0) -
src/os/os_test.go
benchmarkReadDir(".", b) } func benchmarkStat(b *testing.B, path string) { b.ResetTimer() for i := 0; i < b.N; i++ { _, err := Stat(path) if err != nil { b.Fatalf("Stat(%q) failed: %v", path, err) } } } func benchmarkLstat(b *testing.B, path string) { b.ResetTimer() for i := 0; i < b.N; i++ { _, err := Lstat(path) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
src/html/template/escape_test.go
} } func BenchmarkEscapedExecute(b *testing.B) { tmpl := Must(New("t").Parse(`<a onclick="alert('{{.}}')">{{.}}</a>`)) var buf bytes.Buffer b.ResetTimer() for i := 0; i < b.N; i++ { tmpl.Execute(&buf, "foo & 'bar' & baz") buf.Reset() } } // Covers issue 22780. func TestOrphanedTemplate(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 16 03:29:27 UTC 2023 - 56.2K bytes - Viewed (0) -
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/scheduler/framework/plugins/podtopologyspread/scoring_test.go
p := pl.(*PodTopologySpread) status := p.PreScore(ctx, state, tt.pod, tf.BuildNodeInfos(filteredNodes)) if !status.IsSuccess() { b.Fatalf("unexpected error: %v", status) } b.ResetTimer() for i := 0; i < b.N; i++ { var gotList framework.NodeScoreList for _, n := range filteredNodes { nodeName := n.Name
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 60K bytes - Viewed (0) -
pkg/scheduler/internal/cache/cache_test.go
} }) } } func BenchmarkUpdate1kNodes30kPods(b *testing.B) { logger, _ := ktesting.NewTestContext(b) cache := setupCacheOf1kNodes30kPods(b) b.ResetTimer() for n := 0; n < b.N; n++ { cachedNodes := NewEmptySnapshot() cache.UpdateSnapshot(logger, cachedNodes) } } func BenchmarkExpirePods(b *testing.B) { podNums := []int{ 100,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 17 01:38:03 UTC 2023 - 63.8K 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)