common

package
v0.16.9 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportPerfSummaries

func ExportPerfSummaries(summaries []PerfSummary, reportDir string) error

ExportPerfSummaries exports Perfsummary in a format compatible with perfdash and saves results in reportDir directory

Types

type LatencyMetric

type LatencyMetric struct {
	Min    time.Duration `json:"Min"`
	Avg    time.Duration `json:"Avg"`
	Max    time.Duration `json:"Max"`
	Perc50 time.Duration `json:"Perc50"`
	Perc90 time.Duration `json:"Perc90"`
	Perc99 time.Duration `json:"Perc99"`
}

LatencyMetric captures latency metrics of network performance test

type PerfResult

type PerfResult struct {
	Timestamp             time.Time
	Latency               *LatencyMetric
	TransactionRateMetric *TransactionRateMetric
	ThroughputMetric      *ThroughputMetric
}

PerfResult stores information about single network performance test results

type PerfSummary

type PerfSummary struct {
	PerfTest PerfTests
	Result   PerfResult
}

PerfSummary stores combined metadata information and results of test

type PerfTests

type PerfTests struct {
	Tool     string
	Test     string
	SameNode bool
	Scenario string
	Sample   int
	Duration time.Duration
}

PerfTests stores metadata information about performed test

type ThroughputMetric

type ThroughputMetric struct {
	Throughput float64 `json:"Throughput"` // Throughput in bytes/s
}

ThroughputMetric captures throughput metric of network performance test

type TransactionRateMetric

type TransactionRateMetric struct {
	TransactionRate float64 `json:"Rate"` // Ops per second
}

TransactionRateMetric captures transaction rate metric of network performance test

Jump to

Keyboard shortcuts

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