Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for benchmarking (0.37 sec)

  1. 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)
  2. android/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.7K bytes
    - Viewed (0)
  3. src/net/netip/netip_test.go

    		}
    	}
    }
    
    // ip4i was one of the possible representations of IP that came up in
    // discussions, inlining IPv4 addresses, but having an "overflow"
    // interface for IPv6 or IPv6 + zone. This is here for benchmarking.
    type ip4i struct {
    	ip4    [4]byte
    	flags1 byte
    	flags2 byte
    	flags3 byte
    	flags4 byte
    	ipv6   any
    }
    
    func newip4i_v4(a, b, c, d byte) ip4i {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/AbstractFuture.java

      @ParametricNullness
      private V getDoneValue(Object obj) throws ExecutionException {
        // While this seems like it might be too branch-y, simple benchmarking proves it to be
        // unmeasurable (comparing done AbstractFutures with immediateFuture)
        if (obj instanceof Cancellation) {
          throw cancellationExceptionWithCause("Task was cancelled.", ((Cancellation) obj).cause);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      @ParametricNullness
      private V getDoneValue(Object obj) throws ExecutionException {
        // While this seems like it might be too branch-y, simple benchmarking proves it to be
        // unmeasurable (comparing done AbstractFutures with immediateFuture)
        if (obj instanceof Cancellation) {
          throw cancellationExceptionWithCause("Task was cancelled.", ((Cancellation) obj).cause);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (1)
  6. src/runtime/malloc.go

    // pointers, this allows the GC to run before it is all cleared.
    func memclrNoHeapPointersChunked(size uintptr, x unsafe.Pointer) {
    	v := uintptr(x)
    	// got this from benchmarking. 128k is too small, 512k is too large.
    	const chunkBytes = 256 * 1024
    	vsize := v + size
    	for voff := v; voff < vsize; voff = voff + chunkBytes {
    		if getg().preempt {
    			// may hold locks, e.g., profiling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    				if err != nil {
    					b.Fatalf("parse selector: %v", err)
    				}
    				pred := storage.SelectionPredicate{
    					Label: labels.Everything(),
    					Field: parsedField,
    				}
    
    				// now we start benchmarking
    				b.ResetTimer()
    				for i := 0; i < b.N; i++ {
    					result := &example.PodList{}
    					err = cacher.GetList(context.TODO(), "pods", storage.ListOptions{
    						Predicate:       pred,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/test/test.go

    	var buf bytes.Buffer
    	if len(pkgArgs) == 0 || testBench != "" || testFuzz != "" {
    		// Stream test output (no buffering) when no package has
    		// been given on the command line (implicit current directory)
    		// or when benchmarking or fuzzing.
    		// No change to stdout.
    	} else {
    		// If we're only running a single package under test or if parallelism is
    		// set to 1, and if we're displaying all output (testShowPass), we can
    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/math/all_test.go

    	}
    	GlobalB = x
    }
    
    func BenchmarkSin(b *testing.B) {
    	x := 0.0
    	for i := 0; i < b.N; i++ {
    		x = Sin(.5)
    	}
    	GlobalF = x
    }
    
    func BenchmarkSincos(b *testing.B) {
    	x := 0.0
    	y := 0.0
    	for i := 0; i < b.N; i++ {
    		x, y = Sincos(.5)
    	}
    	GlobalF += x
    	GlobalF += y
    }
    
    func BenchmarkSinh(b *testing.B) {
    	x := 0.0
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
Back to top