- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 75 for RunParallel (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_test.go
keys := []string{} for i := 0; i < numKeys; i++ { key := uuid.New().String() keys = append(keys, key) } b.ResetTimer() b.SetParallelism(500) b.RunParallel(func(pb *testing.PB) { for pb.Next() { key := keys[rand.Intn(numKeys)] _, ok := cache.get(key) if ok { cache.remove(key) } else { cache.set(key, &cacheRecord{}, time.Second) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/bench_test.go
} func benchmarkPrinter(b *testing.B, printerFunc func() ResourcePrinter, data runtime.Object) { b.ReportAllocs() b.RunParallel(func(pb *testing.PB) { for pb.Next() { buf := &bytes.Buffer{} if err := printerFunc().PrintObj(data, buf); err != nil { b.Errorf("PrintObj failed: %v", err) } } })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 30 00:36:07 UTC 2022 - 4.2K bytes - Viewed (0) -
src/log/slog/internal/benchmarks/benchmarks_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 04 18:32:54 UTC 2023 - 4.5K bytes - Viewed (0) -
internal/s3select/select_benchmark_test.go
<Enabled>FALSE</Enabled> </RequestProgress> </SelectObjectContentRequest> `) csvData := genSampleCSVData(count) b.ResetTimer() b.ReportAllocs() b.SetBytes(int64(count)) b.RunParallel(func(pb *testing.PB) { for pb.Next() { s3Select, err := NewS3Select(bytes.NewReader(requestXML)) if err != nil { b.Fatal(err) } if err = s3Select.Open(newBytesRSC(csvData)); err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 14 13:54:47 UTC 2022 - 5K bytes - Viewed (0) -
tests/integration/pilot/vm_test.go
VMDistro: image, Subsets: []echo.SubsetConfig{{}}, }) } instances := b.BuildOrFail(t) for idx, image := range images { idx, image := idx, image t.NewSubTest(image).RunParallel(func(t framework.TestContext) { tc := common.TrafficContext{ TestContext: t, Istio: i, Apps: apps, } common.VMTestCases(echo.Instances{instances[idx]})(tc) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 7.4K bytes - Viewed (0) -
tests/integration/pilot/validation_test.go
} return result } func TestValidation(t *testing.T) { framework.NewTest(t). // Limit to Kube environment as we're testing integration of webhook with K8s. RunParallel(func(t framework.TestContext) { dataset := loadTestData(t) denied := func(err error) bool { if err == nil { return false } // We are only checking the string literals of the rejection reasons
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 13 15:19:36 UTC 2023 - 6.7K bytes - Viewed (0) -
cmd/benchmark-utils_test.go
// benchmark utility which helps obtain number of allocations and bytes allocated per ops. b.ReportAllocs() // the actual benchmark for PutObject starts here. Reset the benchmark timer. b.ResetTimer() b.RunParallel(func(pb *testing.PB) { i := 0 for pb.Next() { // insert the object. objInfo, err := obj.PutObject(context.Background(), bucket, "object"+strconv.Itoa(i),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Dec 23 15:46:00 UTC 2022 - 8.2K bytes - Viewed (0) -
src/sync/atomic/value_test.go
}() } for i := 0; i < p; i++ { if !<-done { t.FailNow() } } } } func BenchmarkValueRead(b *testing.B) { var v Value v.Store(new(int)) b.RunParallel(func(pb *testing.PB) { for pb.Next() { x := v.Load().(*int) if *x != 0 { b.Fatalf("wrong value: got %v, want 0", *x) } } }) } var Value_SwapTests = []struct { init any
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 6.1K bytes - Viewed (0) -
tests/integration/pilot/multicluster_test.go
test := test t.NewSubTest(test.name).Run(func(t framework.TestContext) { test.setup(t) for _, source := range sources { source := source t.NewSubTest(source.Config().Cluster.StableName()).RunParallel(func(t framework.TestContext) { source.CallOrFail(t, echo.CallOptions{ To: to, Port: echo.Port{ Name: "http", }, Check: check.And( check.OK(),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 8.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
attr = webhooktesting.NewAttributeUnstructured(ns, tt.AdditionalLabels, tt.IsDryRun) } else { attr = webhooktesting.NewAttribute(ns, tt.AdditionalLabels, tt.IsDryRun) } b.ResetTimer() b.RunParallel(func(pb *testing.PB) { for pb.Next() { wh.Admit(context.TODO(), attr, objectInterfaces) } }) }) } } // TestAdmit tests that MutatingWebhook#Admit works as expected
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11K bytes - Viewed (0)