Documentation
¶
Overview ¶
Package bench collects and compares reproducible performance snapshots.
Index ¶
- Constants
- func Error(format string, args ...any) error
- func Escape(value string) string
- func PRMatches(pr *githubapi.PR, run *githubapi.Run, repo string) bool
- func ReportRun(ctx context.Context, client githubapi.API, repo string, id int64, ...) error
- func TruncateReport(body string, limit int) string
- type Bench
Constants ¶
View Source
const ( PrivateFile = 0o600 Decimal = 10 FloatBits = 64 CommentLimit = 55000 Workflow = "benchmarks.yml" Marker = "<!-- atmos-benchmarks -->" )
Variables ¶
This section is empty.
Functions ¶
func ReportRun ¶
func ReportRun(ctx context.Context, client githubapi.API, repo string, id int64, publish func(int, string, *githubapi.Run) error) error
ReportRun validates PR run provenance and compares data-only artifacts using trusted code, then hands each report to the caller's composite publisher.
func TruncateReport ¶
Types ¶
type Bench ¶
Bench collects and compares reproducible performance snapshots.
func (Bench) Fetch ¶
Fetch retrieves up to ten compatible successful main snapshots. Candidate metadata defaults to the sibling candidate directory; override with ATMOS_BENCH_CANDIDATE_DIR when using another local layout.
Click to show internal directories.
Click to hide internal directories.