- Sort Score
- Result 10 results
- Languages All
Results 41 - 47 of 47 for benchmarking (0.17 sec)
-
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) -
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) -
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) -
src/cmd/compile/internal/ssagen/ssa.go
// useful on all architectures. var hotAlign, hotRequire int64 if base.Debug.AlignHot > 0 { switch base.Ctxt.Arch.Name { // enable this on a case-by-case basis, with benchmarking. // currently shown: // good for amd64 // not helpful for Apple Silicon // case "amd64", "386": // Align to 64 if 31 or fewer bytes remain in a cache line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
pkg/dns/client/dns_test.go
// // docker run -v $PWD:$PWD -w $PWD --network host quay.io/ssro/dnsperf dnsperf -p 15053 -d input -c 100 -l 30 // // where `input` contains dns queries to run, such as `echo.default. A` func BenchmarkDNS(t *testing.B) { s := initDNS(t, false) t.Run("via-agent-cache-miss", func(b *testing.B) { bench(b, s.dnsProxies[0].Address(), "www.bing.com.") }) t.Run("via-agent-cache-hit-fqdn", func(b *testing.B) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 16:17:34 UTC 2024 - 20.4K bytes - Viewed (0) -
docs/pl/docs/index.md
* **WebSockety** * **GraphQL** * bardzo proste testy bazujące na HTTPX oraz `pytest` * **CORS** * **Sesje cookie** * ...i więcej. ## Wydajność
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Apr 29 05:18:04 UTC 2024 - 19.4K bytes - Viewed (0) -
src/regexp/all_test.go
// The following sequence of Match calls used to panic. See issue #10319. re.Match(long) // triggers standard matcher re.Match(long[:1]) // triggers backtracker } func BenchmarkFind(b *testing.B) { b.StopTimer() re := MustCompile("a+b+") wantSubs := "aaabb" s := []byte("acbb" + wantSubs + "dd") b.StartTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { subs := re.Find(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 25.8K bytes - Viewed (0)