Skip to the content.

Benchmark Documentation

This directory contains comprehensive documentation for the fleet benchmark infrastructure.

📊 Authority: All committed benchmark performance claims are centrally indexed in fak/BENCHMARK-AUTHORITY.md with full traceability to commits and artifacts. See fak/BENCHMARK-GOVERNANCE.md for the DOS-centric process that creates, verifies, and publishes benchmark results.

Document Purpose
QUICKSTART.md Get started with cross-machine benchmarks
CROSS-MACHINE-INFRASTRUCTURE.md Full design spec and schema reference

Infrastructure Overview

The benchmark infrastructure enables:

Core Tools

Tool Purpose
tools/bench_catalog.py Build/update master catalog
fak bench-runs Query and compare results
tools/bench_chart.py Generate visualizations
tools/bench_onboard.py Register a new machine
tools/bench_migrate.py Migrate existing data

Key Concepts

Run Identifiers

Format: <machine-id>-<model-id>-<precision>-<config-hash>-<timestamp>

Example: anthony-laptop-smollm2-135m-q8-batch-a1b2c3d-20250106T120000Z

Storage Structure

experiments/benchmark/
├── catalog.json              # Master index
├── machines/                 # Machine registry
├── runs/                     # All benchmark results
└── charts/                   # Generated visualizations

Schema Validation

All artifacts use JSON Schema validation:

Quick Reference

First-time Setup

# 1. Onboard machine
python tools/bench_onboard.py --interactive

# 2. Migrate existing data (optional)
python tools/bench_migrate.py --apply

# 3. Build catalog
python tools/bench_catalog.py build

Daily Operations

# Update catalog after new run
python tools/bench_catalog.py update

# List runs
fak bench-runs list

# Generate charts
python tools/bench_chart.py all

Onboarding New Machine

# On the new machine
python tools/bench_onboard.py --interactive

# Then on any machine (update catalog)
python tools/bench_catalog.py update

# Verify
fak bench-runs list --machine <new-machine-id>