wrk3

package module
v0.0.0-...-aa3ea7d Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

wrk3

Build Status Coverage Status Go Report Card Godocs

A golang generic benchmarking tool based mostly on Gil Tene's wrk2, only rewritten in go, and extended to allow running arbitrary protocols.

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 BenchResult struct {
	Throughput float64
	Counter    int
	Errors     int
	Omitted    int
	Latency    *hdrhistogram.Histogram
	TotalTime  time.Duration
}

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

Jump to

Keyboard shortcuts

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