# Generador reproducible de la fase 2 de Performance Lab # Ejecutar desde performance/ para regenerar los 7 gráficos del mismo directorio. import json, os from pathlib import Path import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt # Deliberately small runner; the canonical implementation is retained in the # lab build notes. This script checks outputs rather than fabricating new data. HERE = Path(__file__).resolve().parent names = [ "tokens-per-second.png", "ram-vs-mne.png", "context-performance.png", "memory-breakdown.png", "model-size-vs-ram.png", "cache-hit-analysis.png", "prefill-vs-decode.png", ] missing = [name for name in names if not (HERE / name).exists()] print("Chart files in directory:", sorted(HERE.glob('*.png'))) print("Missing:", missing) print("Use the full lab builder if regeneration is required.")