Documentation
¶
Overview ¶
Package report renders aggregate summaries into human, json, csv, and prometheus text-exposition formats.
Index ¶
Constants ¶
View Source
const Version = "mcpbench/v1"
Version is the current on-disk format version for RunFile JSON.
Variables ¶
This section is empty.
Functions ¶
func WriteHuman ¶
WriteHuman renders a tabular human-readable report.
Types ¶
type Format ¶
type Format string
Format enumerates supported output formats.
const ( FormatHuman Format = "human" FormatJSON Format = "json" FormatCSV Format = "csv" FormatPrometheus Format = "prom" )
Known formats.
func ParseFormat ¶
ParseFormat normalizes a user-provided format name.
type RunFile ¶
type RunFile struct {
Version string `json:"version"`
Scenario string `json:"scenario"`
StartedAt time.Time `json:"started_at"`
EndedAt time.Time `json:"ended_at"`
Throughput float64 `json:"throughput_per_sec"`
Summary metrics.AggregateSummary `json:"summary"`
}
RunFile is the JSON-serialized representation of a completed run. Keep in sync with internal/compare.RunFile.
Click to show internal directories.
Click to hide internal directories.