- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for resetTimer (0.32 sec)
-
cmd/storage-datatypes_gen_test.go
v := BaseOptions{} b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.MarshalMsg(nil) } } func BenchmarkAppendMsgBaseOptions(b *testing.B) { v := BaseOptions{} bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 62.6K 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/math/big/int_test.go
} } } func BenchmarkBitset(b *testing.B) { z := new(Int) z.SetBit(z, 512, 1) b.ResetTimer() for i := b.N - 1; i >= 0; i-- { z.SetBit(z, i&512, 1) } } func BenchmarkBitsetNeg(b *testing.B) { z := NewInt(-1) z.SetBit(z, 512, 0) b.ResetTimer() for i := b.N - 1; i >= 0; i-- { z.SetBit(z, i&512, 0) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/crypto/des/des_test.go
b.SetBytes(int64(len(out))) b.ResetTimer() for i := 0; i < b.N; i++ { c.Encrypt(out, tt.in) } } func BenchmarkDecrypt(b *testing.B) { tt := encryptDESTests[0] c, err := des.NewCipher(tt.key) if err != nil { b.Fatal("NewCipher:", err) } out := make([]byte, len(tt.out)) b.SetBytes(int64(len(out))) b.ResetTimer() for i := 0; i < b.N; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 16:49:56 UTC 2023 - 52.2K bytes - Viewed (0) -
src/debug/elf/file_test.go
func BenchmarkSymbols64(b *testing.B) { const testdata = "testdata/gcc-amd64-linux-exec" f, err := Open(testdata) if err != nil { b.Fatalf("could not read %s: %v", testdata, err) } defer f.Close() b.ResetTimer() for i := 0; i < b.N; i++ { symbols, err := f.Symbols() if err != nil { b.Fatalf("Symbols(): got unexpected error %v", err) } if len(symbols) != 73 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 60.1K bytes - Viewed (0) -
src/bytes/bytes_test.go
name string input []byte }{ {"Valid", []byte("typical")}, {"InvalidASCII", []byte("foo\xffbar")}, {"InvalidNonASCII", []byte("日本語\xff日本語")}, } replacement := []byte("\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) } }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0) -
src/runtime/pprof/pprof_test.go
} benchWriteTo := func(b *testing.B) { goroutineProf := Lookup("goroutine") b.ResetTimer() for i := 0; i < b.N; i++ { goroutineProf.WriteTo(io.Discard, 0) } b.StopTimer() } benchGoroutineProfile := func(b *testing.B) { p := make([]runtime.StackRecord, 10000) b.ResetTimer() for i := 0; i < b.N; i++ { runtime.GoroutineProfile(p) } b.StopTimer() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
func BenchmarkCompile(b *testing.B) { env := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), true) // prepare the environment s := genArrayWithRule("number", "true")(nil) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { _, err := Compile(s, model.SchemaDeclType(s, false), math.MaxInt64, env, NewExpressionsEnvLoader()) if err != nil { b.Fatal(err) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 51.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go
name = "RatchetingDisabled" } b.Run(name, func(b *testing.B) { featuregatetesting.SetFeatureGateDuringTest(b, utilfeature.DefaultFeatureGate, features.CRDValidationRatcheting, ratchetingEnabled) b.ResetTimer() do := func(pairs []pair) { for _, pair := range pairs { // Create a validator for the GVK of the valid object. validator, ok := validators[pair.old.GroupVersionKind()] if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 59.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/fit_test.go
pl := plugintesting.SetupPlugin(ctx, b, nodeResourcesFunc, &test.nodeResourcesFitArgs, cache.NewSnapshot(existingPods, nodes)) p := pl.(*Fit) b.ResetTimer() requestedPod := st.MakePod().Req(map[v1.ResourceName]string{"cpu": "1000", "memory": "2000"}).Obj() for i := 0; i < b.N; i++ { _, status := p.Score(ctx, state, requestedPod, nodes[0].Name)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 57.4K bytes - Viewed (0)