Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkCmd ¶
func BenchmarkCmd(target RequestFunc)
BenchmarkCmd is a main function helper that runs the provided target function using the commandline arguments
func PrintBenchResult ¶
func PrintBenchResult(throughput float64, duration time.Duration, result BenchResult)
Types ¶
type BenchResult ¶
type Benchmark ¶
type Benchmark struct { Concurrency int Throughput float64 Duration time.Duration SendRequest RequestFunc }
func (Benchmark) Run ¶
func (b Benchmark) Run() BenchResult
type RequestFunc ¶
type RequestFunc func() error
Click to show internal directories.
Click to hide internal directories.