Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 973 for iters (0.05 sec)

  1. 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)
  2. test/map.go

    		m[nan] = 1
    	}
    	if len(m) != n {
    		panic("wrong size map after nan insertion")
    	}
    	iters := 0
    	for k, v := range m {
    		iters++
    		if !math.IsNaN(k) {
    			panic("not NaN")
    		}
    		if v != 1 {
    			panic("wrong value")
    		}
    	}
    	if iters != n {
    		panic("wrong number of nan range iters")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 06 21:02:55 UTC 2014
    - 14.9K bytes
    - Viewed (0)
  3. src/math/rand/rand_test.go

    					for i := range samples {
    						// Generate some uniformly distributed values and count their occurrences.
    						const iters = 1000
    						counts := make([]int, nfact)
    						for i := 0; i < iters; i++ {
    							counts[test.fn()]++
    						}
    						// Calculate chi-squared and add to samples.
    						want := iters / float64(nfact)
    						var χ2 float64
    						for _, have := range counts {
    							err := float64(have) - want
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. src/math/rand/v2/rand_test.go

    					for i := range samples {
    						// Generate some uniformly distributed values and count their occurrences.
    						const iters = 1000
    						counts := make([]int, nfact)
    						for i := 0; i < iters; i++ {
    							counts[test.fn()]++
    						}
    						// Calculate chi-squared and add to samples.
    						want := iters / float64(nfact)
    						var χ2 float64
    						for _, have := range counts {
    							err := float64(have) - want
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. src/runtime/proc_test.go

    	// also preempts at the start of the sweep phase, so make sure that's
    	// done too. See #45867.
    	runtime.GC()
    
    	iters := int(1e5)
    	if testing.Short() {
    		iters = 1e2
    	}
    	runtime.RunSchedLocalQueueEmptyTest(iters)
    }
    
    func benchmarkStackGrowth(b *testing.B, rec int) {
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			stackGrowthRecursive(rec)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go

    	utilruntime "k8s.io/apimachinery/pkg/util/runtime"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    	flag "github.com/spf13/pflag"
    	"sigs.k8s.io/yaml"
    )
    
    var fuzzIters = flag.Int("fuzz-iters", 50, "How many fuzzing iterations to do.")
    
    type testMetaFactory struct{}
    
    func (testMetaFactory) Interpret(data []byte) (*schema.GroupVersionKind, error) {
    	findKind := struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //             Policy.setPolicy(permissivePolicy());
      //             System.setSecurityManager(new SecurityManager());
      //         }
      //         int iters = (args.length == 0) ? 1 : Integer.parseInt(args[0]);
    
      //         Test s = suite();
      //         for (int i = 0; i < iters; ++i) {
      //             junit.textui.TestRunner.run(s);
      //             System.gc();
      //             System.runFinalization();
      //         }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //             Policy.setPolicy(permissivePolicy());
      //             System.setSecurityManager(new SecurityManager());
      //         }
      //         int iters = (args.length == 0) ? 1 : Integer.parseInt(args[0]);
    
      //         Test s = suite();
      //         for (int i = 0; i < iters; ++i) {
      //             junit.textui.TestRunner.run(s);
      //             System.gc();
      //             System.runFinalization();
      //         }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    		fuzzer.MergeFuzzerFuncs(metafuzzer.Funcs, fuzzingFuncs),
    		rand.NewSource(rand.Int63()),
    		codecFactory,
    	)
    	RoundTripTypes(t, scheme, codecFactory, fuzzer, nil)
    }
    
    var FuzzIters = flag.Int("fuzz-iters", defaultFuzzIters, "How many fuzzing iterations to do.")
    
    // globalNonRoundTrippableTypes are kinds that are effectively reserved across all GroupVersions
    // They don't roundtrip
    var globalNonRoundTrippableTypes = sets.NewString(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  10. src/runtime/export_test.go

    			if gs[j].sig != 1 {
    				print("bad element ", j, "(", gs[j].sig, ") at iter ", i, "\n")
    				throw("bad element")
    			}
    		}
    		if s != i/2 && s != i/2+1 {
    			print("bad steal ", s, ", want ", i/2, " or ", i/2+1, ", iter ", i, "\n")
    			throw("bad steal")
    		}
    	}
    }
    
    func RunSchedLocalQueueEmptyTest(iters int) {
    	// Test that runq is not spuriously reported as empty.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top