Documentation ¶
Index ¶
- func Average(vals []float64) (float64, error)
- func CheckHostResults(s ScenarioResults) bool
- func Percentile(vals []float64, ptile float64) (float64, error)
- func ShowLatencyResult(s ScenarioResults)
- func ShowNodeCPU(s ScenarioResults)
- func ShowPodCPU(s ScenarioResults)
- func ShowRRResult(s ScenarioResults)
- func ShowStreamResult(s ScenarioResults)
- type Data
- type Diff
- type DiffData
- type Metadata
- type ScenarioResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 Percentile ¶
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 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 ThroughputSummary []float64 LatencySummary []float64 ClientMetrics metrics.NodeCPU ServerMetrics metrics.NodeCPU ClientPodCPU metrics.PodValues ServerPodCPU metrics.PodValues }
Data describes the result data
type Diff ¶ added in v0.1.6
func TCPThroughputDiff ¶
func TCPThroughputDiff(s *ScenarioResults) ([]Diff, error)
TCPThroughputDiff accepts the Scenario Results and calculates the %diff. returns
type Metadata ¶
type Metadata struct { Platform string `json:"platform"` Kernel string `json:"kernel"` Kubelet string `json:"kubelet"` OCPVersion string `json:"ocpVersion"` IPsec bool `json:"ipsec"` MTU int `json:"mtu"` }
Metadata for the run
type ScenarioResults ¶
ScenarioResults each scenario could have multiple results