Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/net/http/serve_test.go

    		return nil, err
    	}
    	res.Body.Close()
    	return res, nil
    }
    
    // A benchmark for profiling the client without the HTTP server code.
    // The server code runs in a subprocess.
    func BenchmarkClient(b *testing.B) {
    	b.ReportAllocs()
    	b.StopTimer()
    	defer afterTest(b)
    
    	var data = []byte("Hello world.\n")
    	if server := os.Getenv("TEST_BENCH_SERVER"); server != "" {
    		// Server process mode.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top