Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 85 for benchmarking (0.18 sec)

  1. guava/src/com/google/common/collect/Ordering.java

       * elements will appear in the returned list in the same order they appeared in {@code elements}.
       *
       * <p><b>Performance note:</b> According to our
       * benchmarking
       * on Open JDK 7, {@link #immutableSortedCopy} generally performs better (in both time and space)
       * than this method, and this method in turn generally performs better than copying the list and
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. src/runtime/gc_test.go

    		latencies = append(latencies, time.Since(start))
    	}
    	// Make sure to stop the timer before we wait! The load created above
    	// is very heavy-weight and not easy to stop, so we could end up
    	// confusing the benchmarking framework for small b.N.
    	b.StopTimer()
    	stop()
    
    	// Disable the default */op metrics.
    	// ns/op doesn't mean anything because it's an average, but we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/image/gif/writer_test.go

    	// Converting img to rgba is redundant for video-001.png, which is already
    	// in the RGBA format, but for those copy/pasting this benchmark (but
    	// changing the source image), the conversion ensures that we're still
    	// benchmarking encoding an RGBA image.
    	rgba := image.NewRGBA(bo)
    	draw.Draw(rgba, bo, img, bo.Min, draw.Src)
    
    	b.SetBytes(int64(bo.Dx() * bo.Dy() * 4))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    					if !ok {
    						return nil, nil, fmt.Errorf("not a pod")
    					}
    					return pod.ObjectMeta.Labels, fields.Set{
    						"metadata.name": pod.Name,
    					}, nil
    				},
    			}
    
    			// now we start benchmarking
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				list := tc.newListObjectFunc()
    				if err := store.GetList(ctx, dir, storage.ListOptions{Predicate: pred, Recursive: true}, list); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/cases/map.go

    	c.err = transform.ErrEndOfSpan
    	return false
    }
    
    // TODO: consider a similar special case for the fast majority lower case. This
    // is a bit more involved so will require some more precise benchmarking to
    // justify it.
    
    type undUpperCaser struct{ transform.NopResetter }
    
    // undUpperCaser implements the Transformer interface for doing an upper case
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  6. src/net/textproto/reader.go

    		}
    		strs = make([]string, hint)
    	}
    
    	m := make(MIMEHeader, hint)
    
    	// Account for 400 bytes of overhead for the MIMEHeader, plus 200 bytes per entry.
    	// Benchmarking map creation as of go1.20, a one-entry MIMEHeader is 416 bytes and large
    	// MIMEHeaders average about 200 bytes per entry.
    	maxMemory -= 400
    	const mapEntryOverhead = 200
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  7. src/net/dial_test.go

    	}
    }
    
    // Define a pair of blackholed (IPv4, IPv6) addresses, for which dialTCP is
    // expected to hang until the timeout elapses. These addresses are reserved
    // for benchmarking by RFC 6890.
    const (
    	slowDst4 = "198.18.0.254"
    	slowDst6 = "2001:2::254"
    )
    
    // In some environments, the slow IPs may be explicitly unreachable, and fail
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/serviceentry/controller.go

    // address field if the hostname is not a wildcard, or when resolution
    // is not NONE. The IPs are allocated from the reserved Class E subnet
    // (240.240.0.0/16) that is not reachable outside the pod or reserved
    // Benchmarking IP range (2001:2::/48) in RFC5180. When DNS
    // capture is enabled, Envoy will resolve the DNS to these IPs. The
    // listeners for TCP services will also be set up on these IPs. The
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  9. src/math/bits/bits_test.go

    // of the benchmarks to ensure side-effect free calls
    // are not optimized away.
    var Input uint64 = DeBruijn64
    
    // Exported (global) variable to store function results
    // during benchmarking to ensure side-effect free calls
    // are not optimized away.
    var Output int
    
    func BenchmarkLeadingZeros(b *testing.B) {
    	var s int
    	for i := 0; i < b.N; i++ {
    		s += LeadingZeros(uint(Input) >> (uint(i) % UintSize))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 22 20:11:06 UTC 2020
    - 32.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/CharMatcher.java

        int pos = indexIn(string);
        if (pos == -1) {
          return string;
        }
    
        char[] chars = string.toCharArray();
        int spread = 1;
    
        // This unusual loop comes from extensive benchmarking
        OUT:
        while (true) {
          pos++;
          while (true) {
            if (pos == chars.length) {
              break OUT;
            }
            if (matches(chars[pos])) {
              break;
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.8K bytes
    - Viewed (0)
Back to top