Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkParseAddr (0.21 sec)

  1. src/net/netip/netip_test.go

    	{"v6", "fd7a:115c:a1e0:ab12:4843:cd96:626b:430b"},
    	{"v6_ellipsis", "fd7a:115c::626b:430b"},
    	{"v6_v4", "::ffff:192.168.140.255"},
    	{"v6_zone", "1:2::ffff:192.168.140.255%eth1"},
    }
    
    func BenchmarkParseAddr(b *testing.B) {
    	sinkInternValue = unique.Make(AddrDetail{IsV6: true, ZoneV6: "eth1"}) // Pin to not benchmark the intern package
    	for _, test := range parseBenchInputs {
    		b.Run(test.name, func(b *testing.B) {
    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