Documentation ¶
Index ¶
- func NewBenchmarkServer(ctx context.Context, wg *sync.WaitGroup, readyChan chan struct{}, ...)
- type BenchmarkStats
- type LoaderHandler
- func (h *LoaderHandler) HandleAbortRequests(w http.ResponseWriter, r *http.Request)
- func (h *LoaderHandler) HandleArgsRequest(w http.ResponseWriter, r *http.Request)
- func (h *LoaderHandler) HandleBodyRequests(w http.ResponseWriter, r *http.Request)
- func (h *LoaderHandler) HandleHeaderRequests(w http.ResponseWriter, r *http.Request)
- func (h *LoaderHandler) HandleLongRequests(w http.ResponseWriter, r *http.Request)
- func (h *LoaderHandler) HandleMixedRequests(w http.ResponseWriter, r *http.Request)
- func (h *LoaderHandler) HandleOKRequests(w http.ResponseWriter, r *http.Request)
- func (h *LoaderHandler) ResetStats()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BenchmarkStats ¶
type BenchmarkStats struct {
RequestCount uint64
}
type LoaderHandler ¶
type LoaderHandler struct { Stats BenchmarkStats MixedFailedRequests int Args []string // Only one body, loader can send only one Body in benchmark, might change later // If more than one body is in here, then we have an issue Body [][]byte Headers map[string]*headerCount // contains filtered or unexported fields }
func (*LoaderHandler) HandleAbortRequests ¶
func (h *LoaderHandler) HandleAbortRequests(w http.ResponseWriter, r *http.Request)
func (*LoaderHandler) HandleArgsRequest ¶
func (h *LoaderHandler) HandleArgsRequest(w http.ResponseWriter, r *http.Request)
Benchmark should contain only one request here, we want to check whether the args are set only
func (*LoaderHandler) HandleBodyRequests ¶
func (h *LoaderHandler) HandleBodyRequests(w http.ResponseWriter, r *http.Request)
func (*LoaderHandler) HandleHeaderRequests ¶
func (h *LoaderHandler) HandleHeaderRequests(w http.ResponseWriter, r *http.Request)
func (*LoaderHandler) HandleLongRequests ¶
func (h *LoaderHandler) HandleLongRequests(w http.ResponseWriter, r *http.Request)
func (*LoaderHandler) HandleMixedRequests ¶
func (h *LoaderHandler) HandleMixedRequests(w http.ResponseWriter, r *http.Request)
HandleMixedRequests first n requests will failed with 404
func (*LoaderHandler) HandleOKRequests ¶
func (h *LoaderHandler) HandleOKRequests(w http.ResponseWriter, r *http.Request)
func (*LoaderHandler) ResetStats ¶
func (h *LoaderHandler) ResetStats()
Click to show internal directories.
Click to hide internal directories.