Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 85 for benchmarking (0.19 sec)

  1. src/cmd/go/testdata/script/test_shuffle.txt

    stdout '(?s)TestOne(.*)TestTwo(.*)TestThree(.*)BenchmarkOne(.*)BenchmarkTwo(.*)BenchmarkThree'
    
    go test -v -bench=. -shuffle=off foo_test.go
    ! stdout '-test.shuffle '
    stdout '(?s)TestOne(.*)TestTwo(.*)TestThree(.*)BenchmarkOne(.*)BenchmarkTwo(.*)BenchmarkThree'
    
    go test -v -bench=. -shuffle=42 foo_test.go
    stdout '^-test.shuffle 42'
    stdout '(?s)TestThree(.*)TestOne(.*)TestTwo(.*)BenchmarkThree(.*)BenchmarkOne(.*)BenchmarkTwo'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:46:11 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. tests/benchmark_test.go

    	. "gorm.io/gorm/utils/tests"
    )
    
    func BenchmarkCreate(b *testing.B) {
    	user := *GetUser("bench", Config{})
    
    	for x := 0; x < b.N; x++ {
    		user.ID = 0
    		DB.Create(&user)
    	}
    }
    
    func BenchmarkFind(b *testing.B) {
    	user := *GetUser("find", Config{})
    	DB.Create(&user)
    
    	for x := 0; x < b.N; x++ {
    		DB.Find(&User{}, "id = ?", user.ID)
    	}
    }
    
    func BenchmarkScan(b *testing.B) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 01 03:50:57 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  3. pkg/controller/deployment/util/hash_test.go

    func getPodTemplateSpecOldHash(template v1.PodTemplateSpec) uint32 {
    	podTemplateSpecHasher := adler32.New()
    	hashutil.DeepHashObject(podTemplateSpecHasher, template)
    	return podTemplateSpecHasher.Sum32()
    }
    
    func BenchmarkFnv(b *testing.B) {
    	spec := v1.PodTemplateSpec{}
    	json.Unmarshal([]byte(podSpec), &spec)
    
    	for i := 0; i < b.N; i++ {
    		controller.ComputeHash(&spec, nil)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 28 19:00:40 UTC 2019
    - 4K bytes
    - Viewed (0)
  4. tensorflow/compiler/aot/benchmark.cc

      for (const auto& g : groups) {
        printf("  %-*s %*.3f us\n", max_label_size, g.first.c_str(), max_digits + 4,
               g.second);
      }
    }
    
    void Benchmark(const Options& options, const BenchmarkFn& fn, Stats* stats) {
      // If neither max_seconds or max_iters is set, stop at kDefaultMicros.
      const int64_t max_us = (options.max_micros <= 0 && options.max_iters <= 0)
                                 ? Options::kDefaultMicros
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 19:45:29 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/bench_test.go

    		atomic.Store(&x, 0)
    	}
    }
    
    func BenchmarkAnd8(b *testing.B) {
    	var x [512]uint8 // give byte its own cache line
    	sink = &x
    	for i := 0; i < b.N; i++ {
    		atomic.And8(&x[255], uint8(i))
    	}
    }
    
    func BenchmarkAnd(b *testing.B) {
    	var x [128]uint32 // give x its own cache line
    	sink = &x
    	for i := 0; i < b.N; i++ {
    		atomic.And(&x[63], uint32(i))
    	}
    }
    
    func BenchmarkAnd8Parallel(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/errors/wrap_test.go

    			}()
    			if errors.As(err, tc) {
    				t.Errorf("As(err, %T(%v)) = true, want false", tc, tc)
    				return
    			}
    			t.Errorf("As(err, %T(%v)) did not panic", tc, tc)
    		})
    	}
    }
    
    func BenchmarkIs(b *testing.B) {
    	err1 := errors.New("1")
    	err2 := multiErr{multiErr{multiErr{err1, errorT{"a"}}, errorT{"b"}}}
    
    	for i := 0; i < b.N; i++ {
    		if !errors.Is(err2, err1) {
    			b.Fatal("Is failed")
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. 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)
  8. src/math/cmplx/cmath_test.go

    	}
    }
    func BenchmarkRect(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		Rect(2.5, 1.5)
    	}
    }
    func BenchmarkSin(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		Sin(complex(2.5, 3.5))
    	}
    }
    func BenchmarkSinh(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		Sinh(complex(2.5, 3.5))
    	}
    }
    func BenchmarkSqrt(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  9. pkg/log/scope_test.go

    	// for now, we just make sure this doesn't crash. To be totally correct, we'd need to capture stderr and
    	// inspect it, but it's just not worth it
    	defaultScope.Error("TestBadWriter")
    }
    
    func BenchmarkLog(b *testing.B) {
    	run := func(name string, f func()) {
    		b.Run(name, func(b *testing.B) {
    			o := testOptions()
    			o.OutputPaths = []string{"/dev/null"}
    			if err := Configure(o); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/crypto/ecdsa/ecdsa_test.go

    		{"P384", elliptic.P384()},
    		{"P521", elliptic.P521()},
    	}
    	for _, test := range tests {
    		curve := test.curve
    		b.Run(test.name, func(b *testing.B) {
    			f(b, curve)
    		})
    	}
    }
    
    func BenchmarkSign(b *testing.B) {
    	benchmarkAllCurves(b, func(b *testing.B, curve elliptic.Curve) {
    		r := bufio.NewReaderSize(rand.Reader, 1<<15)
    		priv, err := GenerateKey(curve, r)
    		if err != nil {
    			b.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top