- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for benchtime (0.3 sec)
-
src/go/doc/testdata/testing.1.golden
parallel = flag.Int("test.parallel", runtime.GOMAXPROCS(0), "maximum test parallelism") cpuList []int ) // var benchTime = flag.Duration("test.benchtime", 1*time.Second, "approximate run time for each benchmark") // var matchBenchmarks = flag.String("test.bench", "", "regular expression to select benchmarks to run") // var timer *time.Timer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 8.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go
// cache for N concurrent tokens?" // // Given the size of the key range constructed by this test, the default go // benchtime of 1 second is often inadequate to test caching and expiration // behavior. A benchtime of 10 to 30 seconds is adequate to stress these // code paths. type singleBenchmark struct { threadCount int // These token.* variables are set by makeTokens()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 20.3K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/dist/test.go
} if t.asan { build = append(build, "-asan") } if opts.bench { // Run no tests. run = append(run, "-run=^$") // Run benchmarks briefly as a smoke test. run = append(run, "-bench=.*", "-benchtime=.1s") } else if opts.runTests != "" { run = append(run, "-run="+opts.runTests) } if opts.cpu != "" { run = append(run, "-cpu="+opts.cpu) } if t.json { run = append(run, "-json") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 16:01:35 UTC 2024 - 50K bytes - Viewed (0) -
src/vendor/golang.org/x/net/lif/zsys_solaris_amd64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 05 19:54:32 UTC 2022 - 981 bytes - Viewed (0)