Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkServerFakeConnWithKeepAliveLite (0.48 sec)

  1. src/net/http/serve_test.go

    		b.Errorf("b.N=%d but handled %d", b.N, handled)
    	}
    }
    
    // same as above, but representing the most simple possible request
    // and handler. Notably: the handler does not call rw.Header().
    func BenchmarkServerFakeConnWithKeepAliveLite(b *testing.B) {
    	b.ReportAllocs()
    
    	req := reqBytes(`GET / HTTP/1.1
    Host: golang.org
    `)
    	res := []byte("Hello world!\n")
    
    	conn := &rwTestConn{
    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