Documentation
¶
Index ¶
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 {
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"`
// DescriptionHTML содержит HTML, сгенерированный из Report.Description.
// Заполняется в LoadConfig.
DescriptionHTML string
DSN string
}
func LoadConfig ¶
type ReportData ¶
type ReportData struct {
GeneratedAt time.Time
Iterations int
Concurrency int
Speedups []float64
Before *BenchResult
After *BenchResult
Diffs []PlanDiff
Description string
}
Click to show internal directories.
Click to hide internal directories.