Get Benchmark Score Stats
GET/benchmark_score_stats
Return aggregate stats and score distribution histograms for each benchmark.
For every benchmark in the Benchmark table, returns:
- Basic benchmark metadata (name, framework, unit, etc.)
- Count of active, non-null score records
- Count of distinct (vendor_id, server_id) pairs
- A 20-bin histogram of the score distribution (breakpoints + per-bucket counts)
Aggregation and histogram binning are done in SQL to avoid transferring millions of BenchmarkScore rows. Due to the complexity of the query, not using sqlalchemy markup.
Responses
- 200
Successful Response
200: Successful Response. benchmark_id: Unique identifier of the benchmark. name: Human-friendly name of the benchmark. description: Short description of the benchmark. framework: The benchmark framework/software/tool used. measurement: Name of the measurement recorded. unit: Optional unit of measurement for the score. higher_is_better: Whether a higher score indicates better performance. status: Benchmark status (e.g., 'ACTIVE', 'INACTIVE'). configs: Benchmark config fields enriched with example values. Keys come from Benchmark.config_fields; each value includes the original description plus an 'examples' list of unique observed config values. count: Total number of active, non-null benchmark score records. count_servers: Number of distinct (vendor_id, server_id) pairs with scores. histogram: Score distribution histogram; None when no scores are available. breakpoints: NUM_BINS + 1 boundary values defining the edges of each bucket. counts: Number of scores falling in each bucket (length == len(breakpoints) - 1).