Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkBinaryMarshalRoundTrip (0.17 sec)

  1. src/net/netip/netip_test.go

    		}
    	}
    }
    
    func mustIPs(strs ...string) []Addr {
    	var res []Addr
    	for _, s := range strs {
    		res = append(res, mustIP(s))
    	}
    	return res
    }
    
    func BenchmarkBinaryMarshalRoundTrip(b *testing.B) {
    	b.ReportAllocs()
    	tests := []struct {
    		name string
    		ip   string
    	}{
    		{"ipv4", "1.2.3.4"},
    		{"ipv6", "2001:db8::1"},
    		{"ipv6+zone", "2001:db8::1%eth0"},
    	}
    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