Documentation
¶
Overview ¶
Package benchmarks provides performance reporting utilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintReport ¶
func PrintReport(report *PerformanceReport, w io.Writer)
PrintReport prints the report in a human-readable format
func SaveReport ¶
func SaveReport(report *PerformanceReport, outputPath string) error
SaveReport saves the performance report to a file
Types ¶
type BenchmarkMetrics ¶
type BenchmarkMetrics struct {
Throughput float64 `json:"throughput_records_per_sec"`
RecordsPerOp float64 `json:"records_per_operation"`
LatencyMs float64 `json:"latency_ms"`
MemoryMB float64 `json:"memory_mb"`
CPUPercent float64 `json:"cpu_percent"`
APICallsPerSec float64 `json:"api_calls_per_sec"`
ErrorRate float64 `json:"error_rate"`
}
BenchmarkMetrics represents performance metrics
type BenchmarkResult ¶
type BenchmarkResult struct {
Name string `json:"name"`
Configuration map[string]interface{} `json:"configuration"`
Metrics BenchmarkMetrics `json:"metrics"`
PassedTarget bool `json:"passed_target"`
}
BenchmarkResult represents a single benchmark result
type PerformanceReport ¶
type PerformanceReport struct {
Timestamp time.Time `json:"timestamp"`
Target string `json:"target"`
TargetValue float64 `json:"target_value"`
Results []BenchmarkResult `json:"results"`
Summary PerformanceSummary `json:"summary"`
Recommendations []string `json:"recommendations"`
}
PerformanceReport represents a performance test report
func AnalyzeBenchmarkOutput ¶
func AnalyzeBenchmarkOutput(benchmarkOutput string) (*PerformanceReport, error)
AnalyzeBenchmarkOutput analyzes raw benchmark output
func GenerateGoogleSheetsPerformanceReport ¶
func GenerateGoogleSheetsPerformanceReport() (*PerformanceReport, error)
GenerateGoogleSheetsPerformanceReport generates a performance report for Google Sheets connector
type PerformanceSummary ¶
type PerformanceSummary struct {
BestThroughput float64 `json:"best_throughput"`
AverageThroughput float64 `json:"average_throughput"`
TargetAchieved bool `json:"target_achieved"`
PercentOfTarget float64 `json:"percent_of_target"`
OptimalConfig map[string]interface{} `json:"optimal_configuration"`
Bottlenecks []string `json:"bottlenecks"`
}
PerformanceSummary provides an overall summary
Click to show internal directories.
Click to hide internal directories.