Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,163 for iterations (0.21 sec)

  1. src/testing/quick/quick.go

    package quick
    
    import (
    	"flag"
    	"fmt"
    	"math"
    	"math/rand"
    	"reflect"
    	"strings"
    	"time"
    )
    
    var defaultMaxCount *int = flag.Int("quickchecks", 100, "The default number of iterations for each check")
    
    // A Generator can generate random values of its own type.
    type Generator interface {
    	// Generate returns a random instance of the type on which it is a
    	// method using the size as a size hint.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. src/net/dial_unix_test.go

    			// connects _sometimes_ succeed immediately.
    			// Prevent that, so we exercise the code path
    			// we're interested in testing. This seems
    			// harmless. It makes FreeBSD 10.10 work when
    			// run with many iterations. It failed about
    			// half the time previously.
    			return syscall.EINPROGRESS
    		}
    		return err
    	}
    
    	getsockoptIntFunc = func(fd, level, opt int) (val int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/aot/benchmark.h

      static constexpr int64_t kDefaultMicros = 3000000;
    
      int64_t max_iters = 0;   // Maximum iterations to run, ignored if <= 0.
      int64_t max_micros = 0;  // Maximum microseconds to run, ignored if <= 0.
    };
    
    // Stats holds statistics collected during benchmarking.
    struct Stats {
      std::vector<int64_t> per_iter_us;  // Per-iteration deltas in us.
      int64_t total_us;                  // Total time in us.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/resolve/scenarios/VersionRangeResolveTestScenarios.groovy

                    boolean expectConflict = config.conflicts as boolean
                    List<Batch> iterations = []
                    String batchName = config.description ?: "#${batchCount} (${versions})"
                    iterations.add(new Batch(batchName, versions, expected, expected, expectConflict))
                    if (expectedStrictSingle || expectedStrictMulti) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 27.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/cel/config.go

    	// current RuntimeCELCostBudgetMatchConditions gives roughly 1/4 seconds for the validation
    	RuntimeCELCostBudgetMatchConditions = 2500000
    
    	// CheckFrequency configures the number of iterations within a comprehension to evaluate
    	// before checking whether the function evaluation has been interrupted
    	CheckFrequency = 100
    
    	// MaxRequestSizeBytes is the maximum size of a request to the API server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 15 03:28:26 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. src/runtime/proc_test.go

    	exe, err := buildTestProg(t, "testprog")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	iterations := 100
    	if testing.Short() {
    		// Reduce run time to ~100ms, with much lower probability of
    		// catching issues.
    		iterations = 5
    	}
    	for i := 0; i < iterations; i++ {
    		want := "OK\n"
    		output := runBuiltTestProg(t, exe, "LockOSThreadTemplateThreadRace")
    		if output != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  7. plugin/pkg/admission/imagepolicy/admission_test.go

      context:
        cluster: foobar
        user: a name
    current-context: default
    `,
    			wantErr: true,
    		},
    	}
    
    	for _, tt := range tests {
    		// Use a closure so defer statements trigger between loop iterations.
    		t.Run(tt.msg, func(t *testing.T) {
    			err := func() error {
    				tempfile, err := os.CreateTemp("", "")
    				if err != nil {
    					return err
    				}
    				p := tempfile.Name()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 32.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/typeparams/termlist.go

    	// one iteration.
    	for _, x := range xl {
    		if x != nil {
    			return false
    		}
    	}
    	return true
    }
    
    // isAll reports whether the termlist xl represents the set of all types.
    func (xl termlist) isAll() bool {
    	// If there's a 𝓤 term, the entire list is 𝓤.
    	// If the termlist is in normal form, this requires at most
    	// one iteration.
    	for _, x := range xl {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 21:08:44 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. src/slices/sort_benchmark_test.go

    				}
    			}
    			cmpFunc := func(a, b *myStruct) int {
    				if n := strings.Compare(a.a, b.a); n != 0 {
    					return n
    				}
    				return cmp.Compare(a.n, b.n)
    			}
    			// Presort the slice so all benchmark iterations are identical.
    			slices.SortFunc(structs, cmpFunc)
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				// Sort the slice twice because slices.SortFunc modifies the slice in place.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ToBeFixedForConfigurationCache.java

         */
        String[] bottomSpecs() default {};
    
        /**
         * Declare regular expressions matching the iteration name.
         * Defaults to an empty array, meaning this annotation applies to all iterations of the annotated feature.
         */
        String[] iterationMatchers() default {};
    
        String because() default "";
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top