- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,023 for iters (0.2 sec)
-
src/internal/trace/testdata/testprog/futile-wakeup.go
done.Add(4 * procs) for p := 0; p < procs; p++ { const iters = 1e3 go func() { trace.WithRegion(context.Background(), "special", func() { for i := 0; i < iters; i++ { runtime.Gosched() c0 <- 0 } done.Done() }) }() go func() { trace.WithRegion(context.Background(), "special", func() { for i := 0; i < iters; i++ { runtime.Gosched() <-c0 } done.Done()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
src/internal/coverage/cmerge/merge_test.go
cgran coverage.CounterGranularity src, dst, res []uint32 iters int merr bool overflow bool }{ { cmode: coverage.CtrModeSet, cgran: coverage.CtrGranularityPerBlock, src: []uint32{1, 0, 1}, dst: []uint32{1, 1, 0}, res: []uint32{1, 1, 1}, iters: 2, overflow: false, }, { cmode: coverage.CtrModeCount,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:37 UTC 2023 - 3.4K bytes - Viewed (0) -
test/heapsampling.go
// Passed on first try, report no error. return nil } allocInterleaved2(iters) if checkAllocations(getMemProfileRecords(), frames[0:2], iters, allocInterleavedSizes) == nil { // Passed on second try, report no error. return nil } allocInterleaved3(iters) // If it fails a third time, we may be onto something. return checkAllocations(getMemProfileRecords(), frames[0:3], iters, allocInterleavedSizes)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 27 21:36:06 UTC 2022 - 9.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/metrics_test.go
nil, true, gvk, schemaValidator, nil, sts, nil, nil, nil, ) iters := 1 if tt.iters > 0 { iters = tt.iters } for i := 0; i < iters; i++ { _ = strategy.ValidateUpdate(context.TODO(), tt.obj, tt.old) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.9K bytes - Viewed (1) -
src/cmd/compile/internal/test/reproduciblebuilds_test.go
"testing" ) func TestReproducibleBuilds(t *testing.T) { tests := []string{ "issue20272.go", "issue27013.go", "issue30202.go", } testenv.MustHaveGoBuild(t) iters := 10 if testing.Short() { iters = 4 } t.Parallel() for _, test := range tests { test := test t.Run(test, func(t *testing.T) { t.Parallel() var want []byte tmp, err := os.CreateTemp("", "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 18:07:35 UTC 2023 - 2.8K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stress-start-stop.go
select {} }() // Unblock helper goroutines and wait them to finish. wp.Write(tmp[:]) wp.Write(tmp[:]) close(done) wg.Wait() }() const iters = 5 for i := 0; i < iters; i++ { var w io.Writer if i == iters-1 { w = os.Stdout } else { w = new(bytes.Buffer) } if err := trace.Start(w); err != nil { log.Fatalf("failed to start tracing: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.7K bytes - Viewed (0) -
src/testing/benchmark_test.go
procs := uint32(0) iters := uint64(0) b.SetParallelism(3) b.RunParallel(func(pb *testing.PB) { atomic.AddUint32(&procs, 1) for pb.Next() { atomic.AddUint64(&iters, 1) } }) if want := uint32(3 * runtime.GOMAXPROCS(0)); procs != want { t.Errorf("got %v procs, want %v", procs, want) } if iters != uint64(b.N) { t.Errorf("got %v iters, want %v", iters, b.N) } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/aot/benchmark.cc
const int64_t start_us = NowMicros(); int64_t iters = 0; while (true) { const int64_t iter_start_us = NowMicros(); fn(); const int64_t end_us = NowMicros(); // Collect stats and decide whether to stop. stats->per_iter_us.push_back(end_us - iter_start_us); const int64_t total_us = end_us - start_us; ++iters; if ((max_us > 0 && total_us >= max_us) ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 12 19:45:29 UTC 2023 - 4.5K bytes - Viewed (0) -
src/sync/cond_test.go
c.L.Unlock() runtime.Gosched() c.L.Lock() } c.L.Unlock() done <- true }() <-done <-done <-done } func TestCondSignalStealing(t *testing.T) { for iters := 0; iters < 1000; iters++ { var m Mutex cond := NewCond(&m) // Start a waiter. ch := make(chan struct{}) go func() { m.Lock() ch <- struct{}{} cond.Wait() m.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 22 18:52:42 UTC 2023 - 5K bytes - Viewed (0) -
src/sync/map_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 8.1K bytes - Viewed (0)