agentperf-local: A Benchmark That Replays Real Agent Trajectories Against Your Server — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

agentperf-local: A Benchmark That Replays Real Agent Trajectories Against Your Server

Artificial Analysis just open-sourced the tool their public agent benchmarks have always been missing — a sequential replay runner that serves 65,536 tokens of recorded SWE-bench turns to your local llama.cpp / vLLM / SGLang / Splash server and reports output tokens per second and first-token latency. We read the architecture doc, two of the pinned recipes (Qwen3.8 27B NVFP4 on DGX Spark and Q4_K_M on M5 Pro), and the evidence-boundary section to understand what it actually measures, what it does not, and why the `ignore_eos` policy bit is the most important thing nobody is talking about.

agentperf-local (ArtificialAnalysis/aa-agentperf-local, Apache-2.0, Python 3.12+, ~45★ since 2026-09-26) is the open-source client that backs Artificial Analysis’ public leaderboards for local AI agent serving. Five releases in three days — v0.1.0 Sep 27, v0.2.0 Sep 28, v0.3.0/v0.3.1/v0.3.2 Sep 29, plus v0.3.3 Sep 30 — and a recipe catalog that already covers Qwen3.8 27B, Qwen3.6 35B A3B, Qwen3.5 122B A10B, GPT-OSS 120B, Nemotron 3 Super 120B A12B, Gemma 4 12B / 26B-A4B / 31B, Ling 3.0 Flash, and Muse Glimmer across DGX Spark, RTX 5090, M5 Pro, and Strix Halo.

The interesting bit is not the leaderboard. It is the docs/ARCHITECTURE.md, because that document spells out four things that most local-LLM benchmarks quietly fudge:

  1. What “the same model” means when one server drops ignore_eos and another honors it.
  2. Why a streaming client must do zero Python work between tokens — and what happens to the measurement if it does.
  3. How the memory floor for a 65,536-token context is computed from a recipe’s attention shape, not from a single opaque number.
  4. What is not in scope: model quality, signed catalogs, GPU attestation, an accuracy suite.

I’ll take those four in order.

The bet, in one paragraph

A benchmark is only useful if two people running it on two machines get numbers that are actually comparable. The local-inference space has been terrible at this for years — every benchmark blog post in 2025 quietly changed the system prompt, dropped tool calls, set the context window lower than the model supports, or measured prefill instead of decode. agentperf-local’s whole architecture is a response to that. Its measurement invariants are spelled out as a numbered list in docs/ARCHITECTURE.md:

  • The stream loop does no Python work. The clients collect raw response bytes and timestamps while the connection is open. Parsing, tokenization, aggregation, progress updates, and file writes happen after the response closes.
  • Both clients behave the same. Python is the default. Rust is an optional client that takes timestamps off the Python event loop. Both use transport policy direct-sse-no-retry-v1: HTTP/1.1, compact orjson request bytes, no ambient proxy, no redirect, no retry, and 2xx-only success. Equivalence tests pin them to identical metrics.
  • One pass, in order. Tasks and turns run once in source order at concurrency one. Each request carries the full prior conversation.
  • Full context at batch 1. A full run serves 65,536 tokens with one active sequence. Anything less is reduced and not comparable. More is still full.
  • Exact output lengths. The default exact policy sends ignore_eos so every turn generates its recorded token count. A server that drops it cannot run exact.

That last bullet is the one most worth sitting with, because ignore_eos is the single flag that decides whether your run is comparable with anyone else’s.

ignore_eos is the wall most servers hit first

ignore_eos is not part of the OpenAI-compatible spec. It is a non-standard sampling parameter that tells the server “do not stop generating just because the model thinks it is done — keep going until you have produced exactly this many tokens.” If you are benchmarking throughput, you need it, because otherwise your throughput number is a function of how aggressive the model’s stop-token distribution is on the recorded prompt, not of how fast the server can serve tokens.

agentperf-local handles the absence of ignore_eos two different ways. From the README:

Ollama cannot honor ignore_eos. The tool detects Ollama before the run and warns you. The run then uses the recorded policy, which lets the model stop on its own and reports end-to-end latency as a normalized estimate. That result is not directly comparable with exact runs.

The CLI does the same for any other server: run “refuses such a server and names --output-token-policy recorded,” and the TUI switches transparently and tells you. The point is that recorded results get a reduced: true flag in summary.json and are not in the same population as exact results — even when the model, hardware, and runtime version are identical.

I think this is more important than the leaderboard numbers themselves. For the past year, when I read a “X runs Qwen3.8 27B at Y tok/s” claim in a vendor blog post, the first thing I had to ask was whether ignore_eos was set. Most of the time the answer was no, or “we don’t know,” or “the server does not support that flag.” With agentperf-local’s summary.json, that question is now self-answering: a run is either exact and comparable, or it is recorded and not, and the field is on disk.

The recipe shape: pinned SHA-256s and explicit KV-cache math

Each model on a machine is a YAML file in recipes/<model>/<hardware>/<...>.yaml. The DGX Spark recipe for Qwen3.8 27B NVFP4 (recipes/qwen3-8-27b/dgx-spark/qwen38-27b-nvfp4-dgx-spark.yaml) is a tight 100 lines. The interesting parts:

profile_id: qwen38-27b-nvfp4-dgx-spark
as_of: '2026-09-21'
quantization: NVFP4
hf_revision: 319f741cce68d7914884900c138a1fbb70a42f30
context_tokens: 65536
memory:
  full_attention_layers: 16
  full_kv_heads: 4
  full_kv_head_dimension: 256
  kv_bytes_per_scalar: 1
  recurrent_state_slots: 10
  constant_state_bytes: 1782411428
  runtime_overhead_bytes: 9064728579
runtime_versions:
  vllm: 0.28.0
vllm:
  arguments:
  - --kv-cache-dtype
  - fp8
  - --gpu-memory-utilization
  - '0.8'
  - --max-num-batched-tokens
  - '16384'
  - --enable-chunked-prefill
  - --async-scheduling
  - --enable-prefix-caching
  - --speculative-config
  - '{"method":"dflash","model":"z-lab/Qwen3.8-27B-DFlash2","num_speculative_tokens":8}'

That block is doing four jobs at once. The hf_revision plus the per-file sha256 and size_bytes entries pin the weights to one immutable Hugging Face commit, so a 2027 rerun is comparing the same bytes. The memory block is the recipe’s self-reported KV-cache shape — not a derived single value — and the memory floor the managed run enforces is computed from those fields, not from a vendor benchmark blog. The runtime_versions block pins vLLM to 0.28.0; the launcher refuses to run against any other version. And the vllm.arguments list is the exact serve command, including the speculative-decoding draft model and the eight-token speculation budget.

I have not seen another local-LLM benchmark publish the serve command inline in the recipe. Most benchmark writeups say “we used vLLM 0.28” and hope you assume the rest. Here, the recipe is the deployment, and the deployment is the benchmark.

The Apple Silicon recipe for the same model — recipes/qwen3-8-27b/m5-pro/qwen38-27b-q4-k-m-mtp-m5-pro.yaml — has the equivalent llama.cpp block:

llama_cpp:
  batch_size: 2048
  ubatch_size: 512
  speculative_tokens: 4
  backend: metal
  load_mode: mmap
  threads: 6
  flash_attention: true
  cache_ram_mib: 0

The two recipes are deliberately not the same shape — llama.cpp does not have a --speculative-config flag, so the draft budget (speculative_tokens: 4) lives at the recipe level. The prefill ubatch (512), decode batch (2048), and the Metal backend are explicit. This is the level of granularity that lets you defend a number when someone asks “how did you get that?”

What the numbers actually show

The shipped results live under docs/evidence (referenced from the architecture doc) and are JSON, not prose. The headline numbers in summary.json are output tokens per second and median + p95 first-token and turn times — same shape the public Artificial Analysis leaderboards have always shown, but here you can read the raw file.

The interesting findings are not the throughputs (those are the same shape as every other local-inference blog post in 2026: Q4_K_M at ~28 tok/s on M5 Pro, NVFP4 at ~57 tok/s on DGX Spark, both at full 65k context). The interesting findings are the protocol-level discoveries:

  • Cached prompt tokens now get reported. The Sep 29 release added fix: ask vLLM and SGLang to report cached prompt tokens — which means a benchmark that previously could not tell you how much of its prefill was a cache hit now can. The first turn of an agent replay is a cold prefill; the second turn is mostly cached. Pretending both are prefill cost has been quietly inflating agent latency numbers for a year.
  • MTP recipes are first-class. The M5 Pro recipe ships with speculation_policy: enabled-mtp-self-draft and the DGX Spark recipe ships with enabled-dflash-draft. MTP (multi-token prediction) and DFlash are two different speculative-decoding strategies, and a benchmark that supports both at the recipe level is a benchmark that lets you compare them head-to-head on the same hardware — same weights, same context, same replay. That is exactly the comparison that local-inference vendors have been avoiding.
  • Splash showed up. Inco AI’s Metal-only inference engine (brew install incoai/tap/splash) has its own recipe (qwen38-27b-splash-dflash), with a Splash-specific caveat: it cannot honor ignore_eos, so it is pinned to recorded mode and its 8-bit KV cache is documented as “not comparable.” That asymmetry is a real measurement, not marketing.

What this does not measure (and what that is worth)

The “Not implemented” list at the bottom of ARCHITECTURE.md is short and unambiguous:

Not implemented: a scored accuracy suite; bundled runtime binaries or a general model installer; signed catalogs (the bundled catalog is anchored on the release commit); power measurement without nvidia-smi; independent GPU, model, or process attestation; and the service-side classifier and the verified tier.

Read that as: this tool measures the server, not the model. If you want to know whether your local model gives the right answer to a SWE-bench task, you want something else — the OpenHands eval harness, SWE-bench Verified itself, or one of the per-model leaderboards. agentperf-local will replay the recorded prompt for the task and measure how fast it is served; it will not score the answer.

The “Evidence boundary” section is even sharper:

Three claims stay separate:

  • Configuration intent: local bindings show which files, labels, endpoint scope, and client the user selected.
  • Measured execution: result files show what the local client observed on the request path.
  • Verified identity: proving the physical GPU, model bytes, runtime bytes, and process placement needs an external trust mechanism. None exists here.

Anyone can modify this open-source client and fabricate consistent evidence. Every submission is therefore self-reported.

This is the right framing. Artificial Analysis has built a public leaderboard business on top of self-reported numbers for years — that has always been their model — and the open-source client now exposes the same trust boundary to everyone who runs it. You can submit a result and the leaderboard will publish it; the question of whether your weights are the real Qwen3.8 27B NVFP4 commit is on you. The pinned SHA-256s in the recipe are the answer on the client side; remote attestation is not.

Trade-offs and what it doesn’t fix

Three honest limits:

  • No real agent harness is in the loop. agentperf-local replays recorded model turns. A real agent also has harness latency — the time between the model’s response and the next request — which is not measured here. The tool-mode live flag does run the recorded shell commands in Docker and includes the real tool latency, but that is opt-in and the recipe still only measures what fits between the OpenAI-compatible request and response. If your bottleneck is the harness, not the server, this benchmark will tell you the server is fast.
  • The recipe catalog is curated. You can write a recipe for any OpenAI-compatible model and submit it, but the defaults are all from the Artificial Analysis team. If you want to compare a model nobody has published a recipe for, you write the recipe yourself, with the attendant risk of mis-pinning a SHA-256 or getting the KV-cache shape wrong. The tool will happily run whatever you give it; it does not check whether your recipe is sane. The make lint and make test CI runs validate equivalence between the Python and Rust clients, not recipe correctness.
  • The ignore_eos divide is real. Ollama, every LM Studio default, and several of the in-house inference stacks I have shipped cannot run the exact policy. Those servers will land in the recorded column on any leaderboard built from this tool. That is the correct outcome — but it means the headline numbers you see quoted from public Artificial Analysis leaderboards are not the only numbers; the second column matters, and the second column is not where vendor blogs point.

The post I want to write after this one is about how the same recipe structure could anchor a per-turn cost model for an agent: a benchmark that measures not “how fast is the server” but “how much does each model turn cost, in dollars and in latency, when the prefix is already cached.” agentperf-local’s new “report cached prompt tokens” PR is the first step in that direction; the second step is reporting per-turn cost, not just per-run throughput. Nobody has built that yet. Maybe Artificial Analysis will.

References and where to dig further

Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.