bench

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat struct {
	NOK  int64
	NErr int64
	NReq int64

	NRead  int64
	NWrite int64

	BeginTime time.Time
	EndTime   time.Time

	List map[int64]int64

	Up   float64
	Down float64
	QPS  float64
	AVG  float64

	Max int64
	Min int64
	Avg int64
	Sum map[int64]int64

	Wait func()
	// contains filtered or unexported fields
}

func HTTP

func HTTP(meta task.Meta, nconn, nreq int64, req []*http.Request, check func(*http.Request, *http.Response)) (*Stat, error)

func (*Stat) Show

func (s *Stat) Show() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL