# Benchmark Handbook Step-by-step guide for running benchmarks and generating reports. ## Quick Start ```bash # 1. Run E2E tests with report output pytest -m live_e2e tests_2.0/live/ \ --report-output benchmarks/reports/$(date +%Y-%m-%d)-v2.0.4b3.jsonl # 2. Generate analysis report python benchmarks/generate_benchmark_report.py # 3. View results cat benchmarks/reports/BENCHMARK-*.md ``` --- ## Running Benchmarks ### Basic Test Run ```bash # Run all E2E tests, output to JSONL pytest -m live_e2e tests_2.0/live/ \ --report-output benchmarks/reports/$(date +%Y-%m-%d)-v2.0.4b3.jsonl ``` ### With Custom HuggingFace Cache ```bash HF_HOME=/path/to/huggingface/cache \ pytest -m live_e2e tests_2.0/live/ -v \ --report-output benchmarks/reports/2025-12-20-v2.0.4b3.jsonl ``` ### With Memory Monitoring ```bash # Run memmon in parallel to capture memory profile python benchmarks/tools/memmon.py \ --output benchmarks/reports/2025-12-20-memory.jsonl \ -- pytest -m live_e2e tests_2.0/live/ \ --report-output benchmarks/reports/2025-12-20-v2.0.4b3.jsonl ``` --- ## Generating Reports ### Auto-Detect Latest JSONL ```bash python benchmarks/generate_benchmark_report.py # → Finds most recent .jsonl in benchmarks/reports/ # → Outputs: BENCHMARK-