report

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderMarkdown

func RenderMarkdown(w io.Writer, stats []Stats)

Types

type Percentiles

type Percentiles struct {
	P50 float64
	P95 float64
	P99 float64
}

type Record

type Record struct {
	Provider     string  `json:"provider"`
	Model        string  `json:"model"`
	Status       string  `json:"status"`
	TTFTMs       int64   `json:"ttft_ms"`
	LatencyMs    int64   `json:"latency_ms"`
	TokensPerSec float64 `json:"tokens_per_sec"`
	TokenCount   int     `json:"token_count"`
	Error        string  `json:"error,omitempty"`
	Timestamp    string  `json:"timestamp"`
}

func ParseJSONL

func ParseJSONL(r io.Reader) ([]Record, error)

type Stats

type Stats struct {
	Provider     string
	Model        string
	Count        int
	Errors       int
	TTFT         Percentiles
	Latency      Percentiles
	TokensPerSec Percentiles
}

func Compute

func Compute(records []Record) []Stats

Jump to

Keyboard shortcuts

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