Documentation
¶
Index ¶
- func Generate(data ReportData, outPath string) error
- func NewBenchmark(log *slog.Logger, dsn string) (*benchmark, error)
- func NewDockerComparator(log *slog.Logger, cfg *Config) (*dockerComparator, error)
- type BenchResult
- type Config
- type DescriptionEntry
- type PlanDiff
- type PlanNode
- type Query
- type ReportData
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(data ReportData, outPath string) error
Types ¶
type BenchResult ¶
type Config ¶
type Config struct {
ProjectDir string
Migration struct {
EnvVar string `yaml:"env_var"`
BeforeVersion string `yaml:"before_version"`
AfterVersion string `yaml:"after_version"`
} `yaml:"migration"`
Setup struct {
Command string `yaml:"command"`
} `yaml:"setup"`
Benchmark struct {
BeforeQueries string `yaml:"before_queries"`
AfterQueries string `yaml:"after_queries"`
Iterations int `yaml:"iterations"`
Concurrency int `yaml:"concurrency"`
} `yaml:"benchmark"`
Report struct {
Description []DescriptionEntry `yaml:"description"`
} `yaml:"report"`
DSN string
}
func LoadConfig ¶
type DescriptionEntry ¶ added in v1.0.0
type ReportData ¶
type ReportData struct {
GeneratedAt time.Time
Iterations int
Concurrency int
Speedups []float64
Before *BenchResult
After *BenchResult
Diffs []PlanDiff
Description []DescriptionEntry
}
Click to show internal directories.
Click to hide internal directories.