parse

package
v0.0.0-...-b44688a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MutilateAvg represent avg.
	MutilateAvg = "avg"
	// MutilateStd represent std.
	MutilateStd = "std"
	// MutilateMin represent min.
	MutilateMin = "min"
	// MutilatePercentile5th represent 5th latency percentile [us].
	MutilatePercentile5th = "percentile/5th"
	// MutilatePercentile10th represent 10th latency percentile [us].
	MutilatePercentile10th = "percentile/10th"
	// MutilatePercentile90th represent 90th latency percentile [us].
	MutilatePercentile90th = "percentile/90th"
	// MutilatePercentile95th represent 95th latency percentile [us].
	MutilatePercentile95th = "percentile/95th"
	// MutilatePercentile99th represent 99th latency percentile [us].
	MutilatePercentile99th = "percentile/99th"
	// MutilateQPS represent qps.
	MutilateQPS = "qps"
	// MutilateMisses represents misses
	MutilateMisses = "misses"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Results

type Results struct {
	Raw               map[string]float64
	LatencyPercentile string
}

Results contains map of parsed mutilate results indexed by a name. TODO(bplotka): We should introduce here a typed struct instead of having dynamic map. We don't expect to change these fields any soon.

func File

func File(path string) (Results, error)

File parse the file from given path and gather all metrics. NOTE: Public to allow use it without snap infrastructure.

func Parse

func Parse(reader io.Reader) (Results, error)

Parse retrieves latency metrics from mutilate output. Following format is expected: #type avg std min 5th 10th 90th 95th 99th read 109.6 231.8 17.4 49.4 55.9 137.2 216.1 916.0 ... Total QPS = 4993.1 (149793 / 30.0s)

Misses = 0 (0.0%) ...

Jump to

Keyboard shortcuts

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