Documentation
¶
Overview ¶
Package selfbench measures file-discovered Flow workloads in process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionProfile ¶ added in v0.99.0
type ActionProfile struct {
Action string `json:"action"`
Calls int `json:"calls"`
Errors int `json:"errors,omitempty"`
TotalMs float64 `json:"total_ms"`
MeanMs float64 `json:"mean_ms"`
MaxMs float64 `json:"max_ms"`
}
ActionProfile aggregates lifecycle time across measured warm runs. Durations are inclusive, so nested actions may overlap and must not be summed as a total.
type AllocationPerRun ¶ added in v0.99.0
type AllocationPerRun struct {
Runs int `json:"runs"`
AllocationsPerRun float64 `json:"allocations_per_run"`
BytesPerRun float64 `json:"bytes_per_run"`
}
AllocationPerRun summarizes allocations over repeated runs.
type AllocationStats ¶ added in v0.99.0
AllocationStats counts Go heap allocations made during a phase. Bytes are cumulative allocated bytes, not live heap size or resident memory.
type Result ¶
type Result struct {
Name string `json:"name"`
CompileMs float64 `json:"compile_ms"`
CompileAllocation AllocationStats `json:"compile_allocation"`
FirstRunMs float64 `json:"first_run_ms"`
FirstRunAllocation AllocationStats `json:"first_run_allocation"`
Warmup int `json:"warmup"`
WarmupAllocation AllocationPerRun `json:"warmup_allocation"`
Warm nodes_bench.BenchRunRes `json:"warm"`
WarmAllocation AllocationPerRun `json:"warm_allocation"`
Actions []ActionProfile `json:"actions,omitempty"`
Error string `json:"error,omitempty"`
}
Result separates compilation, first execution, and warm samples.
type Scenario ¶
Scenario is one source file; Name is its portable, suite-relative filter key.