Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BenchmarkResult ¶
type BenchmarkResult struct {
Name string `json:"name"`
Duration time.Duration `json:"duration_ms"`
Score float64 `json:"score"`
Metric string `json:"metric"`
Passed bool `json:"passed"`
Details string `json:"details,omitempty"`
}
BenchmarkResult holds the result of a single benchmark run.
type BenchmarkSuite ¶
type BenchmarkSuite struct {
Results []BenchmarkResult `json:"results"`
}
BenchmarkSuite runs benchmarks across the hawk-eco ecosystem.
func RunAll ¶
func RunAll(projectDir string) (*BenchmarkSuite, error)
RunAll runs all available benchmarks and returns the results.
func (*BenchmarkSuite) FormatReport ¶
func (s *BenchmarkSuite) FormatReport() string
FormatReport returns a human-readable benchmark report.
func (*BenchmarkSuite) SaveJSON ¶
func (s *BenchmarkSuite) SaveJSON(path string) error
SaveJSON saves the benchmark results to a JSON file.
Click to show internal directories.
Click to hide internal directories.