Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for benchtime (0.54 sec)

  1. src/net/http/serve_test.go

    // The client code runs in a subprocess.
    //
    // For use like:
    //
    //	$ go test -c
    //	$ ./http.test -test.run='^$' -test.bench='^BenchmarkServer$' -test.benchtime=15s -test.cpuprofile=http.prof
    //	$ go tool pprof http.test http.prof
    //	(pprof) web
    func BenchmarkServer(b *testing.B) {
    	b.ReportAllocs()
    	// Child process mode;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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