Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for benchtime (0.17 sec)

  1. src/cmd/go/testdata/script/test_cache_inputs.txt

    go test testcache -run=ExternalFile
    stdout '\(cached\)'
    
    # The -benchtime flag without -bench should not affect caching.
    go test testcache -run=Benchtime -benchtime=1x
    go test testcache -run=Benchtime -benchtime=1x
    stdout '\(cached\)'
    
    go test testcache -run=Benchtime -bench=Benchtime -benchtime=1x
    go test testcache -run=Benchtime -bench=Benchtime -benchtime=1x
    ! stdout '\(cached\)'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 22:23:53 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. src/testing/benchmark.go

    	}()
    
    	// Run the benchmark for at least the specified amount of time.
    	if b.benchTime.n > 0 {
    		// We already ran a single iteration in run1.
    		// If -benchtime=1x was requested, use that result.
    		// See https://golang.org/issue/32051.
    		if b.benchTime.n > 1 {
    			b.runN(b.benchTime.n)
    		}
    	} else {
    		d := b.benchTime.d
    		for n := int64(1); !b.failed && b.duration < d && n < 1e9; {
    			last := n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. hack/jenkins/benchmark-dockerized.sh

    ./hack/install-etcd.sh
    
    # Run the benchmark tests and pretty-print the results into a separate file.
    # Log output of the tests go to stderr.
    make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=${TEST_PREFIX:-.} -benchtime=${BENCHTIME:-1s} -benchmem  -data-items-dir=${ARTIFACTS}" \
      | (go run test/integration/benchmark/extractlog/main.go) \
      | tee \
       >(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/test/flagdefs.go

    package test
    
    // passFlagToTest contains the flags that should be forwarded to
    // the test binary with the prefix "test.".
    var passFlagToTest = map[string]bool{
    	"bench":                true,
    	"benchmem":             true,
    	"benchtime":            true,
    	"blockprofile":         true,
    	"blockprofilerate":     true,
    	"count":                true,
    	"coverprofile":         true,
    	"cpu":                  true,
    	"cpuprofile":           true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/testing/sub_test.go

    			// This is almost like the Benchmark function, except that we override
    			// the benchtime and catch the failure result of the subbenchmark.
    			root := &B{
    				common: common{
    					signal: make(chan bool),
    					name:   "root",
    					w:      buf,
    				},
    				benchFunc: func(b *B) { ok = b.Run("test", tc.f) }, // Use Run to catch failure.
    				benchTime: durationOrCountFlag{d: 1 * time.Microsecond},
    			}
    			if tc.chatty {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  6. pkg/ledger/smt_test.go

    		fmt.Println(index, " : update time : ", elapsed, "commit time : ", elapsed2,
    			"\n1000 Get time : ", elapsed3,
    			"\nRAM : ", m.Sys/1024/1024, " MiB")
    	}
    }
    
    // go test -run=xxx -bench=. -benchmem -test.benchtime=20s
    func BenchmarkCacheHeightLimit(b *testing.B) {
    	smt := newSMT(hasher, cache.NewTTL(forever, time.Minute), time.Minute)
    	benchmark10MAccounts10Ktps(smt, b)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/testflag.go

    	// to build the test in a way that supports the use of the flag.
    
    	cf.StringVar(&testBench, "bench", "", "")
    	cf.Bool("benchmem", false, "")
    	cf.String("benchtime", "", "")
    	cf.StringVar(&testBlockProfile, "blockprofile", "", "")
    	cf.String("blockprofilerate", "", "")
    	cf.Int("count", 0, "")
    	cf.String("cpu", "", "")
    	cf.StringVar(&testCPUProfile, "cpuprofile", "", "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/test/test.go

    	    with b.N=1 to find any sub-benchmarks matching Y, which are
    	    then run in full.
    
    	-benchtime t
    	    Run enough iterations of each benchmark to take t, specified
    	    as a time.Duration (for example, -benchtime 1h30s).
    	    The default is 1 second (1s).
    	    The special syntax Nx means to run the benchmark N times
    	    (for example, -benchtime 100x).
    
    	-count n
    	    Run each test, benchmark, and fuzz seed n times (default 1).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  9. src/testing/testing_test.go

    	exe, err := os.Executable()
    	if err != nil {
    		t.Skipf("can't find test executable: %v", err)
    	}
    
    	cmd := testenv.Command(t, exe, "-test.run=^"+test+"$", "-test.bench="+test, "-test.v", "-test.parallel=2", "-test.benchtime=2x")
    	cmd = testenv.CleanCmdEnv(cmd)
    	cmd.Env = append(cmd.Env, "GO_WANT_HELPER_PROCESS=1")
    	out, err := cmd.CombinedOutput()
    	t.Logf("%v: %v\n%s", cmd, err, out)
    
    	return out
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //	    then run in full.
    //
    //	-benchtime t
    //	    Run enough iterations of each benchmark to take t, specified
    //	    as a time.Duration (for example, -benchtime 1h30s).
    //	    The default is 1 second (1s).
    //	    The special syntax Nx means to run the benchmark N times
    //	    (for example, -benchtime 100x).
    //
    //	-count n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top