Documentation ¶
Overview ¶
Package benchmark package provides tools to run progressive or independent benchmarks against teleport services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Rate is requests per second origination rate Rate int // Command is a command to run Command []string // Interactive turns on interactive sessions Interactive bool // MinimumWindow is the min duration MinimumWindow time.Duration // MinimumMeasurments is the min amount of requests MinimumMeasurements int }
Config specifies benchmark requests to run
type Linear ¶
type Linear struct { // LowerBound is the lower end of rps to execute LowerBound int // UpperBound is the upper end of rps to execute UpperBound int // Step is the amount of rps to increment by Step int // MinimumMeasurements is the minimum measurement a benchmark should execute MinimumMeasurements int // MinimumWindow is the minimum duration to run benchmark for MinimumWindow time.Duration // contains filtered or unexported fields }
Linear generator
func (*Linear) GetBenchmark ¶
GetBenchmark returns the benchmark config for the current generation.
type Result ¶
type Result struct { // RequestsOriginated is amount of requests originated RequestsOriginated int // RequestsFailed is amount of requests failed RequestsFailed int // Histogram holds the response duration values Histogram *hdrhistogram.Histogram // LastError contains last recorded error LastError error // Duration it takes for the whole benchmark to run Duration time.Duration }
Result is a result of the benchmark
Click to show internal directories.
Click to hide internal directories.