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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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