util

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Latency

type Latency struct {
	// contains filtered or unexported fields
}

func (*Latency) Avg

func (lt *Latency) Avg() time.Duration

func (*Latency) Max

func (lt *Latency) Max() time.Duration

func (*Latency) Min

func (lt *Latency) Min() time.Duration

func (*Latency) Record

func (lt *Latency) Record(latency time.Duration)

func (*Latency) String

func (lt *Latency) String() string

type Report

type Report struct {
	RunnerConfig     string
	TestInstanceName string
	TestRuns         []TestRunMetrics
}

func NewReportForTestInstance

func NewReportForTestInstance(runnerConfig string, instanceName string) *Report

func (*Report) AddTestRunMetrics

func (r *Report) AddTestRunMetrics(name string, totalActions int64, duration time.Duration, tps *TPS, lt *Latency)

func (*Report) GenerateHTML

func (r *Report) GenerateHTML() error

type TPS

type TPS struct {
	SendRate   float64 `json:"sendRate"`
	Throughput float64 `json:"throughput"`
}

func GenerateTPS

func GenerateTPS(totalActions int64, startTime int64, endSendTime int64) *TPS

type TestRunMetrics

type TestRunMetrics struct {
	Name         string
	TotalActions string
	Duration     string
	SendRate     string
	MinLatency   string
	MaxLatency   string
	AvgLatency   string
	Throughput   string
}

Jump to

Keyboard shortcuts

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