Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for benchtime (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/encoding/base64/base64_test.go

    		StdEncoding.EncodeToString(data)
    	}
    }
    
    func BenchmarkDecodeString(b *testing.B) {
    	sizes := []int{2, 4, 8, 64, 8192}
    	benchFunc := func(b *testing.B, benchSize int) {
    		data := StdEncoding.EncodeToString(make([]byte, benchSize))
    		b.SetBytes(int64(len(data)))
    		b.ResetTimer()
    		for i := 0; i < b.N; i++ {
    			StdEncoding.DecodeString(data)
    		}
    	}
    	for _, size := range sizes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 18:57:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/Encdec.java

        public static double dec_doublebe ( byte[] src, int si ) {
            return Double.longBitsToDouble(dec_uint64be(src, si));
        }
    
    
        /*
         * Encode times
         */
    
        public static int enc_time ( Date date, byte[] dst, int di, int enc ) {
            long t;
    
            switch ( enc ) {
            case TIME_1970_SEC_32BE:
                return enc_uint32be((int) ( date.getTime() / 1000L ), dst, di);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/Encdec.java

        }
        public static double dec_doublebe( byte[] src, int si )
        {
            return Double.longBitsToDouble( dec_uint64be( src, si ));
        }
    
        /* Encode times
         */
    
        public static int enc_time( Date date, byte[] dst, int di, int enc )
        {
            long t;
    
            switch( enc ) {
                case TIME_1970_SEC_32BE:
                    return enc_uint32be( (int)(date.getTime() / 1000L), dst, di );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 10.9K bytes
    - Viewed (0)
Back to top