- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 168 for resetTimer (0.14 sec)
-
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) -
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) -
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) -
cmd/erasure-sets_test.go
{256}, {512}, {1024}, } for _, testCase := range cases { testCase := testCase key := randString(testCase.key) b.Run("", func(b *testing.B) { b.SetBytes(1024) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { crcHashMod(key, 16) } }) } } func BenchmarkSipHash(b *testing.B) { cases := []struct { key int }{ {16}, {64}, {128}, {256},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 12 07:21:56 UTC 2024 - 6.9K bytes - Viewed (0) -
src/runtime/gc_test.go
} func BenchmarkReadMemStats(b *testing.B) { var ms runtime.MemStats const heapSize = 100 << 20 x := make([]*[1024]byte, heapSize/1024) for i := range x { x[i] = new([1024]byte) } b.ResetTimer() for i := 0; i < b.N; i++ { runtime.ReadMemStats(&ms) } runtime.KeepAlive(x) } func applyGCLoad(b *testing.B) func() { // We’ll apply load to the runtime with maxProcs-1 goroutines
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
src/crypto/rsa/rsa_test.go
b.Fatal(err) } b.ResetTimer() for i := 0; i < b.N; i++ { err := VerifyPKCS1v15(&test2048Key.PublicKey, crypto.SHA256, hashed[:], s) if err != nil { b.Fatal(err) } } }) } func BenchmarkSignPSS(b *testing.B) { b.Run("2048", func(b *testing.B) { hashed := sha256.Sum256([]byte("testing")) var sink byte b.ResetTimer() for i := 0; i < b.N; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 12 00:55:41 UTC 2024 - 30.9K bytes - Viewed (0) -
pkg/api/testing/unstructured_test.go
} } } func BenchmarkToUnstructured(b *testing.B) { items := benchmarkItems(b) size := len(items) convertor := runtime.DefaultUnstructuredConverter b.ResetTimer() for i := 0; i < b.N; i++ { unstr, err := convertor.ToUnstructured(&items[i%size]) if err != nil || unstr == nil { b.Fatalf("unexpected error: %v", err) } } b.StopTimer() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 16.9K bytes - Viewed (0) -
src/crypto/internal/mlkem768/mlkem768_test.go
t.Errorf("got %s, expected %s", got, expected) } } var sink byte func BenchmarkKeyGen(b *testing.B) { var dk DecapsulationKey var d, z [32]byte rand.Read(d[:]) rand.Read(z[:]) b.ResetTimer() for i := 0; i < b.N; i++ { dk := kemKeyGen(&dk, &d, &z) sink ^= dk.EncapsulationKey()[0] } } func BenchmarkEncaps(b *testing.B) { d := make([]byte, 32) rand.Read(d)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 15:27:18 UTC 2024 - 10.3K bytes - Viewed (0) -
src/testing/helper_test.go
t.Errorf("got second output line %q; want %q", got, want) } } func BenchmarkTBHelper(b *testing.B) { f1 := func() { b.Helper() } f2 := func() { b.Helper() } b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { if i&1 == 0 { f1() } else { f2() } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:24:47 UTC 2023 - 2.6K bytes - Viewed (0)