Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkGoLookupIPWithBrokenNameServer (0.68 sec)

  1. src/net/dnsclient_unix_test.go

    	testHookUninstaller.Do(uninstallTestHooks)
    	ctx := context.Background()
    	b.ReportAllocs()
    
    	for i := 0; i < b.N; i++ {
    		goResolver.LookupIPAddr(ctx, "some.nonexistent")
    	}
    }
    
    func BenchmarkGoLookupIPWithBrokenNameServer(b *testing.B) {
    	testHookUninstaller.Do(uninstallTestHooks)
    
    	conf, err := newResolvConfTest()
    	if err != nil {
    		b.Fatal(err)
    	}
    	defer conf.teardown()
    
    	lines := []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top