Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 295 for relocs (0.17 sec)

  1. src/log/slog/attr_test.go

    		b = Bool("key", true).Value.Bool()
    		s = String("key", "foo").Value.String()
    		d = Duration("key", d).Value.Duration()
    		x = Any("key", p).Value.Any()
    	}))
    	if a != 0 {
    		t.Errorf("got %d allocs, want zero", a)
    	}
    	_ = u
    	_ = f
    	_ = b
    	_ = s
    	_ = x
    }
    
    func BenchmarkAttrString(b *testing.B) {
    	var (
    		is string
    		u  string
    		f  string
    		bn string
    		s  string
    		x  string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 18:23:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. src/runtime/metrics_test.go

    			}
    			if gotFree != objects.frees {
    				t.Errorf("object distribution counts don't match total allocs: got %d, want %d", gotFree, objects.frees)
    			}
    		}
    	}
    	// The current GC has at least 2 pauses per GC.
    	// Check to see if that value makes sense.
    	if gc.pauses < gc.numGC*2 {
    		t.Errorf("fewer pauses than expected: got %d, want at least %d", gc.pauses, gc.numGC*2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/net/tcpsock_test.go

    		t.Fatal(err)
    	}
    	defer server.Close()
    
    	var buf [128]byte
    	allocs := testing.AllocsPerRun(1000, func() {
    		_, err := server.Write(buf[:])
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, err = io.ReadFull(client, buf[:])
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if allocs > 0 {
    		t.Fatalf("got %v; want 0", allocs)
    	}
    
    	var bufwrt [128]byte
    	ch := make(chan bool)
    	defer close(ch)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  4. src/runtime/os_linux_ppc64x.go

    //go:build linux && (ppc64 || ppc64le)
    
    package runtime
    
    import "internal/cpu"
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		// ppc64x doesn't have a 'cpuid' instruction
    		// equivalent and relies on HWCAP/HWCAP2 bits for
    		// hardware capabilities.
    		cpu.HWCap = uint(val)
    	case _AT_HWCAP2:
    		cpu.HWCap2 = uint(val)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 526 bytes
    - Viewed (0)
  5. src/log/slog/internal/buffer/buffer_test.go

    	}
    	testenv.SkipIfOptimizationOff(t)
    	got := int(testing.AllocsPerRun(5, func() {
    		b := New()
    		defer b.Free()
    		b.WriteString("not 1K worth of bytes")
    	}))
    	if got != 0 {
    		t.Errorf("got %d allocs, want 0", got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:48:35 UTC 2023
    - 776 bytes
    - Viewed (0)
  6. docs/de/docs/how-to/extending-openapi.md

    Fügen wir beispielsweise <a href="https://github.com/Rebilly/ReDoc/blob/master/docs/redoc-vendor-extensions.md#x-logo" class="external-link" target="_blank">ReDocs OpenAPI-Erweiterung</a> zum Einbinden eines benutzerdefinierten Logos hinzu.
    
    ### Normales **FastAPI**
    
    Schreiben Sie zunächst wie gewohnt Ihre ganze **FastAPI**-Anwendung:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 14 16:44:05 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/runtime/iface_test.go

    	if runtime.Compiler != "gc" {
    		t.Skip("skipping on non-gc compiler")
    	}
    
    	n := testing.AllocsPerRun(1, func() {
    		_ = e == ts
    		_ = i1 == ts
    		_ = e == 1
    	})
    
    	if n > 0 {
    		t.Fatalf("iface cmp allocs=%v; want 0", n)
    	}
    }
    
    func BenchmarkEqEfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_ = e == ts
    	}
    }
    
    func BenchmarkEqIfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  8. src/crypto/internal/edwards25519/edwards25519_test.go

    func TestAllocations(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t)
    
    	if allocs := testing.AllocsPerRun(100, func() {
    		p := NewIdentityPoint()
    		p.Add(p, NewGeneratorPoint())
    		s := NewScalar()
    		testAllocationsSink ^= s.Bytes()[0]
    		testAllocationsSink ^= p.Bytes()[0]
    	}); allocs > 0 {
    		t.Errorf("expected zero allocations, got %0.1v", allocs)
    	}
    }
    
    func decodeHex(s string) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 18:45:00 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  9. src/net/udpsock_test.go

    			t.Fatal(err)
    		}
    	})
    	if got := int(allocs); got != 0 {
    		t.Errorf("WriteToUDPAddrPort/ReadFromUDPAddrPort allocated %d objects", got)
    	}
    
    	allocs = testing.AllocsPerRun(1000, func() {
    		_, err := conn.WriteTo(buf, addr)
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, _, err = conn.ReadFromUDP(buf)
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if got := int(allocs); got != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  10. src/runtime/defs_netbsd_386.go

    	REG_ESP    = C._REG_ESP
    	REG_EBX    = C._REG_EBX
    	REG_EDX    = C._REG_EDX
    	REG_ECX    = C._REG_ECX
    	REG_EAX    = C._REG_EAX
    	REG_TRAPNO = C._REG_TRAPNO
    	REG_ERR    = C._REG_ERR
    	REG_EIP    = C._REG_EIP
    	REG_CS     = C._REG_CS
    	REG_EFL    = C._REG_EFL
    	REG_UESP   = C._REG_UESP
    	REG_SS     = C._REG_SS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 855 bytes
    - Viewed (0)
Back to top