- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 263 for resetTime (0.24 sec)
-
src/runtime/sema_test.go
for _, n := range []int{1000, 2000, 4000, 8000} { b.Run(fmt.Sprintf("OneAddrCollision/n=%d", n), func(b *testing.B) { tab := Escape(new(SemTable)) u := make([]uint32, SemTableSize+1) b.ResetTimer() for j := 0; j < b.N; j++ { // Simulate two locks colliding on the same semaRoot. // // Specifically enqueue all the waiters for the first lock, // then all the waiters for the second lock.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 21 19:37:22 UTC 2022 - 4.2K bytes - Viewed (0) -
src/runtime/map_test.go
func benchmarkMapAppendAssignInt32(b *testing.B, n int) { a := make(map[int32][]int) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { key := int32(i & (n - 1)) a[key] = append(a[key], i) } } func benchmarkMapDeleteInt32(b *testing.B, n int) { a := make(map[int32]int, n) b.ResetTimer() for i := 0; i < b.N; i++ { if len(a) == 0 { b.StopTimer() for j := i; j < i+n; j++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0) -
src/log/slog/json_handler_test.go
String("program", "my-test-program"), String("package", "log/slog"), String("traceID", "2039232309232309"), String("URL", "https://pkg.go.dev/golang.org/x/log/slog")) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { l.LogAttrs(ctx, LevelInfo, "this is a typical log message", String("module", "github.com/google/go-cmp"), String("version", "v1.23.4"), Int("count", 23),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 11 17:06:26 UTC 2023 - 6.5K bytes - Viewed (0) -
src/runtime/callers_test.go
if n <= 0 { pcs := make([]uintptr, 32) b.ResetTimer() for i := 0; i < b.N; i++ { runtime.Callers(0, pcs) } b.StopTimer() return 0 } return 1 + callersCached(b, n-1) } func callersInlined(b *testing.B, n int) int { if n <= 0 { pcs := make([]uintptr, 32) b.ResetTimer() for i := 0; i < b.N; i++ { runtime.Callers(0, pcs) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 21:36:31 UTC 2023 - 12.1K bytes - Viewed (0) -
plugin/pkg/admission/security/podsecurity/admission_test.go
namespace, "mypod", schema.GroupVersionResource{Group: "", Version: "v1", Resource: "pods"}, "", admission.Create, &metav1.CreateOptions{}, false, &user.DefaultInfo{Name: "myuser"}, ) b.ResetTimer() for i := 0; i < b.N; i++ { if err := p.Validate(ctx, attrs, nil); err != nil { b.Fatal(err) } } }) b.Run(namespace+"_deployment", func(b *testing.B) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 15 01:29:47 UTC 2022 - 10.7K bytes - Viewed (0) -
cmd/metacache-bucket_test.go
FilterPrefix: "", Marker: "", Limit: 0, AskDisks: "strict", Recursive: false, Separator: slashSeparator, Create: true, }) } b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bm.findCache(listPathOptions{ ID: mustGetUUID(), Bucket: "", BaseDir: pathNames[i%paths], Prefix: "", FilterPrefix: "",
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 25 23:29:45 UTC 2022 - 1.8K bytes - Viewed (0) -
pilot/pkg/xds/bench_test.go
} func BenchmarkInitPushContext(b *testing.B) { configureBenchmark(b) for _, tt := range testCases { b.Run(tt.Name, func(b *testing.B) { s, proxy := setupTest(b, tt) b.ResetTimer() for n := 0; n < b.N; n++ { s.Env().PushContext().InitDone.Store(false) initPushContext(s.Env(), proxy) } }) } } func BenchmarkRouteGeneration(b *testing.B) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 18:13:40 UTC 2024 - 19.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
values[i].Format = BinarySI } b.ResetTimer() var s string for i := 0; i < b.N; i++ { q := values[i%len(values)] q.s = "" s = q.String() } b.StopTimer() if len(s) == 0 { b.Fatal(s) } } func BenchmarkQuantityMarshalJSON(b *testing.B) { values := benchmarkQuantities() b.ResetTimer() for i := 0; i < b.N; i++ { q := values[i%len(values)]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
src/time/sleep.go
// //go:linkname newTimer func newTimer(when, period int64, f func(any, uintptr, int64), arg any, cp unsafe.Pointer) *Timer //go:linkname stopTimer func stopTimer(*Timer) bool //go:linkname resetTimer func resetTimer(t *Timer, when, period int64) bool // Note: The runtime knows the layout of struct Timer, since newTimer allocates it. // The runtime also knows that Ticker and Timer have the same layout.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 8.5K bytes - Viewed (0) -
cmd/format-erasure_test.go
for j := 0; j < setDriveCount; j++ { newFormat := format.Clone() newFormat.Erasure.This = format.Erasure.Sets[i][j] formats[i*setDriveCount+j] = newFormat } } b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { _, _ = getFormatErasureInQuorumOld(formats) } } func BenchmarkGetFormatErasureInQuorum(b *testing.B) { setCount := 200 setDriveCount := 15
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Apr 15 08:25:46 UTC 2024 - 12.9K bytes - Viewed (0)