MCPcopy
hub / github.com/cloudflare/cloudflared / BenchmarkServeHTTPSimple

Function BenchmarkServeHTTPSimple

connection/http2_test.go:602–611  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

600}
601
602func BenchmarkServeHTTPSimple(b *testing.B) {
603 test := testRequest{
604 name: "ok",
605 endpoint: "ok",
606 expectedStatus: http.StatusOK,
607 expectedBody: []byte(http.StatusText(http.StatusOK)),
608 }
609
610 benchmarkServeHTTP(b, test)
611}
612
613func BenchmarkServeHTTPLargeFile(b *testing.B) {
614 test := testRequest{

Callers

nothing calls this directly

Calls 1

benchmarkServeHTTPFunction · 0.85

Tested by

no test coverage detected