bench

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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