* API benchmark: run history and regression detection
api_perf.py --record saves each run to a SQLite history kept outside the
repository (--data-dir, $WROLPI_BENCH_DIR, or ~/.local/share/wrolpi-bench) and
reports endpoints that got slower than their own baseline: the median of the
last 5 trustworthy runs, flagged at 1.5x and +100 ms, with hot regressions
re-timed before they are reported. Also reports slow drift, errors, slow
endpoints, response growth, library growth, and the commits between the
baseline and the run that touched related code.
Runs on a busy host (downloads, load above core count) or during which the API
was unavailable are recorded but never used as baselines. Host profiles can
live in the data dir so LAN addresses stay out of every checkout; a profile
marked production refuses --cold without --restart-production.
The catalog drops the removed ai/chat endpoints and adds repos, bookmarks,
jobs, torrents, sync, speedtest, map and video description endpoints.
test_api_perf.py fails when a GET route is neither timed nor deliberately
excluded, so new endpoints are not silently left out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* API benchmark: a 5xx is an endpoint error, not an unavailable API
Sanic answers 503 when a single request exceeds its response timeout; that
endpoint is reported as an error and the run stays a usable baseline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>