- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 94 for stopTimer (0.28 sec)
-
src/cmd/compile/internal/ssa/passbm_test.go
b.ReportAllocs() c := testConfig(b) fun := c.Fun("entry", bg(size)...) CheckFunc(fun.f) b.ResetTimer() for i := 0; i < b.N; i++ { fn(fun.f) b.StopTimer() CheckFunc(fun.f) b.StartTimer() } } // benchFnBlock runs passFunc across a function with b.N blocks. func benchFnBlock(b *testing.B, fn passFunc, bg blockGen) { b.ReportAllocs() c := testConfig(b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 3.1K bytes - Viewed (0) -
src/math/big/natconv_test.go
} } func LeafSizeHelper(b *testing.B, base, size int) { b.StopTimer() originalLeafSize := leafSize resetTable(cacheBase10.table[:]) leafSize = size b.StartTimer() for d := 1; d <= 10000; d *= 10 { b.StopTimer() var z nat z = z.expWW(Word(base), Word(d)) // build target number _ = z.utoa(base) // warm divisor cache
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 16.8K bytes - Viewed (0) -
src/runtime/netpoll_os_test.go
b.StartTimer() for i := 0; i < b.N; i++ { for j := 0; j < 10; j++ { wg.Add(1) go func() { runtime.NetpollBreak() wg.Done() }() } } wg.Wait() b.StopTimer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 520 bytes - Viewed (0) -
pilot/pkg/config/memory/store_test.go
Version: "v1alpha3", Kind: "ServiceEntry", }, Namespace: "ns", }, Spec: &v1alpha3.ServiceEntry{ Hosts: []string{"www.foo.com"}, }, } for n := 0; n < b.N; n++ { b.StopTimer() s := initStore(b) b.StartTimer() // update one thousand times for i := 0; i < 1000; i++ { cfg.Name = strconv.Itoa(i) cfg.Spec.(*v1alpha3.ServiceEntry).Hosts[0] = cfg.Name
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 26 01:14:27 UTC 2023 - 3.4K bytes - Viewed (0) -
src/go/doc/testdata/testing.0.golden
func (b *B) SetBytes(n int64) // StartTimer starts timing a test. This function is called ... func (b *B) StartTimer() // StopTimer stops timing a test. This can be used to pause the ... func (b *B) StopTimer() // The results of a benchmark run. type BenchmarkResult struct { N int // The number of iterations. T time.Duration // The total time taken.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4.1K bytes - Viewed (0) -
pkg/test/loadbalancersim/timer/queue.go
stopCh: make(chan struct{}), resetTimerCh: make(chan struct{}), } // Start the worker thread. go func() { for { select { case <-q.stopCh: q.stopTimer() return case <-q.resetTimerCh: q.resetTimer() case <-q.timer.C: q.onTimerExpired() } } }() return q } func (q *Queue) Len() int { q.mutex.Lock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 19:13:32 UTC 2023 - 3.6K bytes - Viewed (0) -
pkg/api/testing/conversion_test.go
if err != nil { b.Fatalf("Conversion error: %v", err) } result = obj.(*api.Node) } b.StopTimer() if !apiequality.Semantic.DeepDerivative(node, *result) { b.Fatalf("Incorrect conversion: %s", cmp.Diff(node, *result)) } } func BenchmarkReplicationControllerConversion(b *testing.B) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 30 06:49:09 UTC 2021 - 3.9K bytes - Viewed (0) -
src/unique/handle_bench_test.go
b.ReportAllocs() b.ResetTimer() b.RunParallel(func(pb *testing.PB) { i := 0 for pb.Next() { _ = Make(testData[i]) i++ if i >= len(testData) { i = 0 } } }) b.StopTimer() runtime.GC() runtime.GC() } var ( testData [128]string testDataLarge [128 << 10]string ) func init() { for i := range testData { testData[i] = fmt.Sprintf("%b", i) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:07 UTC 2024 - 1.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_test_simple.txt
stdout ExampleWithEmptyOutput -- go.mod -- module m go 1.16 -- bench_test.go -- package testlist import ( "fmt" "testing" ) func BenchmarkSimplefunc(b *testing.B) { b.StopTimer() b.StartTimer() for i := 0; i < b.N; i++ { _ = fmt.Sprint("Test for bench") } } -- example_test.go -- package testlist import ( "fmt" ) func ExampleSimple() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 856 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/help_test.go
b.Run(tc.name, func(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { _, err := ExtractList(tc.list) if err != nil { b.Fatalf("ExtractList: %v", err) } } b.StopTimer() }) } } func BenchmarkEachListItem(b *testing.B) { tests := []struct { name string list runtime.Object }{ { name: "StructReceiverList",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 29 13:40:46 UTC 2023 - 12.1K bytes - Viewed (0)