local-llm-measurement

Measurement tooling and findings for local LLM inference.

GitHub repo: local-llm-measurement
Last update: 2026/08/15

Description

local-llm-measurement is a set of bash/python harnesses for measuring what happens between an agent and a local inference server, measuring the network traffic. Three questions, one directory each: what enters the model per request (token audit), what persists between requests (KV cache behavior), what exits (reasoning overhead). Written against llama.cpp’s llama-server, but every tool takes a base URL and works on any OpenAI-compatible endpoint. The repository contains:

Running these tools requires no dependencies beyond the basics: bash, curl, jq, python3.

Technologies

Write-ups

Findings from the original runs, one article per measurement:

  1. Token audit — what enters the model per request
  2. Context lifecycle — what persists between requests
  3. Reasoning overhead — what exits the model

Why this project exists

I built these because my local agent took over three minutes to answer a simple question, and nothing in any config file explained why. Measuring the wire did: most of the prompt was tool definitions the agent never used, and most of the decode was reasoning nobody reads. Same hardware, zero money spent, cold start down to ~12 seconds. The tools are generic because the problem is the same across all agents and harnesses: every local stack pays for tokens its documentation doesn’t mention, and the only way to actually know what yours pays is to measure it.