Versions in this module Expand all Collapse all v0 v0.1.2 Apr 10, 2026 Changes in this version + func MRR(retrieved []string, expected map[string]bool) float64 + func NDCG(retrieved []string, expectedOrder []string) float64 + func Percentile(sorted []float64, p float64) float64 + func PrecisionRecall(retrieved []string, expected map[string]bool) (float64, float64, int) + func Run(opts Options) (interface{}, error) + type EvalResult struct + Expected int + MRR float64 + Mode string + NDCG float64 + Precision float64 + Recall float64 + Relevant int + Retrieved int + type LatencyResult struct + CacheHitRatio float64 + DurationMs float64 + Errors int + Mode string + P50Ms float64 + P95Ms float64 + P99Ms float64 + PerStageLatencyMs map[string]float64 + Requests int + StagesHit []string + type Options struct + APIKey string + AdminKey string + Concurrency int + Destination string + GoldenFile string + Logger *slog.Logger + Mode string + N int + OutputFile string + Query string + Source string + URL string + type ThroughputResult struct + Concurrency int + DurationMs float64 + Errors int + Mode string + P50Ms float64 + P95Ms float64 + P99Ms float64 + ReqPerSec float64 + Requests int