#!/usr/bin/env python3 """ Real-corpus prompt-processing benchmark for llama-server on the RX 580 pod. Runs ON THE POD. Normally invoked by bench.sh, not directly. Starts llama-server from a given build directory with the production config, waits for /health, POSTs fixed slices of the Pan Tadeusz corpus to /completion, records timings.prompt_n / prompt_ms / prompt_per_second, then shuts the server down cleanly. Prompt slices are FIXED CONSTANTS (see SLICES below), calibrated once against the Qwen3.6-35B-A3B tokenizer, so that every build is measured on byte-identical input. Do not re-calibrate for a normal run; use --calibrate only if the model or the corpus changes. Usage: ppbench.py