Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkIPv4_inline (0.14 sec)

  1. src/net/netip/netip_test.go

    	flags2 byte
    	flags3 byte
    	flags4 byte
    	ipv6   any
    }
    
    func newip4i_v4(a, b, c, d byte) ip4i {
    	return ip4i{ip4: [4]byte{a, b, c, d}}
    }
    
    // BenchmarkIPv4_inline benchmarks the candidate representation, ip4i.
    func BenchmarkIPv4_inline(b *testing.B) {
    	b.ReportAllocs()
    	ips := []ip4i{}
    	for i := 0; i < b.N; i++ {
    		ip := newip4i_v4(8, 8, 8, 8)
    		ips = ips[:0]
    		for i := 0; i < 100; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
Back to top