Documentation ¶
Index ¶
- type Table
- func (t *Table) ActualQPS(qps float64) *Table
- func (t *Table) AddedLatency(latency float64) *Table
- func (t *Table) BaselineLatency(latency float64) *Table
- func (t *Table) CPU(cpu int64) *Table
- func (t *Table) Client(clientName string) *Table
- func (t *Table) DaprLatency(latency float64) *Table
- func (t *Table) Flush() error
- func (t *Table) Memory(cpu float64) *Table
- func (t *Table) Output(header, value string) *Table
- func (t *Table) OutputFloat64(header string, value float64) *Table
- func (t *Table) OutputFortio(result perf.TestResult) *Table
- func (t *Table) OutputInt(header string, value int) *Table
- func (t *Table) OutputK6(k6results []*loadtest.K6RunnerMetricsSummary) *Table
- func (t *Table) OutputK6Trend(prefix string, unit unit, trend loadtest.K6TrendMetric) *Table
- func (t *Table) Outputf(header, format string, params ...any) *Table
- func (t *Table) P90(p90 float64) *Table
- func (t *Table) P99(p99 float64) *Table
- func (t *Table) Params(p perf.TestParameters) *Table
- func (t *Table) QPS(qps int) *Table
- func (t *Table) Restarts(restarts int) *Table
- func (t *Table) Service(serviceName string) *Table
- func (t *Table) SidecarCPU(cpu int64) *Table
- func (t *Table) SidecarMemory(cpu float64) *Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
Table is primarily used as a source of arbitrary test output. Tests can send output to the summary table and later flush them. when flush is called so the table is serialized into a file that contains the test name on it, so you should use one table per test. the table output is typically used as a github enhanced job summary. see more: https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/
func (*Table) AddedLatency ¶
AddedLatency is a shortcut for Outputf("Added latency avg", "%2.fms")
func (*Table) BaselineLatency ¶
BaselineLatency is a shortcut for Outputf("Baseline latency avg", "%2.fms")
func (*Table) DaprLatency ¶
DaprLatency is a shortcut for Outputf("Dapr latency avg", "%2.fms")
func (*Table) OutputFloat64 ¶
OutputFloat64 same as output but converts from float64 to string.
func (*Table) OutputFortio ¶
func (t *Table) OutputFortio(result perf.TestResult) *Table
OutputFortio summarize the fortio results.
func (*Table) OutputK6 ¶
func (t *Table) OutputK6(k6results []*loadtest.K6RunnerMetricsSummary) *Table
OutputK6 summarize the K6 results for each runner.
func (*Table) OutputK6Trend ¶
func (t *Table) OutputK6Trend(prefix string, unit unit, trend loadtest.K6TrendMetric) *Table
OutputK6Trend outputs the given k6trend using the given prefix.
func (*Table) Params ¶
func (t *Table) Params(p perf.TestParameters) *Table
QPS is a short for .OutputInt("QPS")
func (*Table) SidecarCPU ¶
SidecarCPU is a shortcut for .Outputf("Sidecar CPU", "%vm")
func (*Table) SidecarMemory ¶
SidecarMemory is a shortcut for .Outputf("Sidecar Memory", "%vm")