measurement

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ELAPSED   = "ELAPSED"
	COUNT     = "COUNT"
	QPS       = "QPS"
	AVG       = "AVG"
	MIN       = "MIN"
	MAX       = "MAX"
	PER50TH   = "PER50TH"
	PER90TH   = "PER90TH"
	PER95TH   = "PER95TH"
	PER99TH   = "PER99TH"
	PER999TH  = "PER999TH"
	PER9999TH = "PER9999TH"
)

Metric name.

Variables

This section is empty.

Functions

func EnableWarmUp

func EnableWarmUp(b bool)

EnableWarmUp sets whether to enable warm-up.

func InitCSV

func InitCSV() *csvs

func InitHistograms

func InitHistograms(p *properties.Properties) *histograms

func InitMeasure

func InitMeasure(p *properties.Properties)

InitMeasure initializes the global measurement.

func IsWarmUpFinished

func IsWarmUpFinished() bool

IsWarmUpFinished returns whether warm-up is finished or not.

func Measure

func Measure(op string, start time.Time, lan time.Duration)

Measure measures the operation.

func Output

func Output()

Output prints the complete measurements.

func Summary

func Summary()

Summary prints the measurement summary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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