result

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Average

func Average(vals []float64) (float64, error)

Average accepts array of floats to calculate average

func CheckHostResults

func CheckHostResults(s ScenarioResults) bool

CheckHostResults will check to see if there are hostNet results returns true if there are results with hostNetwork

func ConfidenceInterval added in v0.1.18

func ConfidenceInterval(vals []float64, ci float64) (float64, float64, float64)

Confidence accepts array of floats to calculate average

func Percentile

func Percentile(vals []float64, ptile float64) (float64, error)

Percentile accepts array of floats and the desired %tile to calculate

func ShowLatencyResult

func ShowLatencyResult(s ScenarioResults)

ShowLatencyResult accepts NetPerfResults to display to the user via stdout

func ShowNodeCPU

func ShowNodeCPU(s ScenarioResults)

ShowNodeCPU accepts ScenarioResults and presents to the user via stdout the NodeCPU info

func ShowPodCPU

func ShowPodCPU(s ScenarioResults)

ShowPodCPU accepts ScenarioResults and presents to the user via stdout the PodCPU info

func ShowRRResult

func ShowRRResult(s ScenarioResults)

ShowRRResult will display the RR transaction results Currently showing the Avg Value.

func ShowSpecificResults added in v0.1.8

func ShowSpecificResults(s ScenarioResults)

ShowSpecificResults

func ShowStreamResult

func ShowStreamResult(s ScenarioResults)

ShowStreamResult will display the throughput results Currently sharing Avg value

Types

type Data

type Data struct {
	config.Config
	Driver            string
	Metric            string
	SameNode          bool
	HostNetwork       bool
	ClientNodeInfo    metrics.NodeInfo
	ServerNodeInfo    metrics.NodeInfo
	Sample            sample.Sample
	StartTime         time.Time
	EndTime           time.Time
	Service           bool
	AcrossAZ          bool
	ThroughputSummary []float64
	LatencySummary    []float64
	LossSummary       []float64
	RetransmitSummary []float64
	ClientMetrics     metrics.NodeCPU
	ServerMetrics     metrics.NodeCPU
	ClientPodCPU      metrics.PodValues
	ServerPodCPU      metrics.PodValues
	ClientNodeLabels  map[string]string
	ServerNodeLabels  map[string]string
}

Data describes the result data

type Diff

type Diff struct {
	MessageSize int
	Result      float64
	Streams     int
}

func TCPThroughputDiff

func TCPThroughputDiff(s *ScenarioResults) ([]Diff, error)

TCPThroughputDiff accepts the Scenario Results and calculates the %diff. returns

type DiffData

type DiffData struct {
	MessageSize int
	Streams     int
	HostPerf    float64
	PodPerf     float64
}

type Metadata

type Metadata struct {
	ocpmeta.ClusterMetadata
	Kernel          string `json:"kernel"`
	OCPShortVersion string `json:"ocpShortVersion"`
	IPsec           bool   `json:"ipsec"`
	MTU             int    `json:"mtu"`
}

Metadata for the run

type ScenarioResults

type ScenarioResults struct {
	Results   []Data
	Version   string
	GitCommit string
	Metadata
}

ScenarioResults each scenario could have multiple results

Jump to

Keyboard shortcuts

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