
Testing AMD GAIA 0.27’s C++ Overhead Claims with a Reproducible Agent Benchmark
On 2026-12-01, a headline claimed AMD GAIA 0.27 uses C++ to cut the overhead of local AI agents. That is a claim about a runtime, and runtime claims can be measured. What follows is a reproducible agent benchmark methodology: what to freeze, what to instrument, which of three tracks answers which question about startup time, memory usage, tool-call latency, and end-to-end task completion — and how to present the results so a reader can audit them instead of trusting a chart.
One thing up front, because it shapes everything below. I never got the igor'sLAB article body. What I have is a headline, a one-line summary, and an RSS redirect. I also don't have a verified GAIA 0.27 build on hardware I could pin. So there are no GAIA measurements in this post. There is a harness, a set of commands, arithmetic you can check, and a hard line between what the report says and what would have to be true for it to matter.
On this page
What the GAIA 0.27 Report Claims—and What This Benchmark Must Establish
Attribute the December 1, 2026 igor'sLAB report: GAIA 0.27 reportedly uses C++ to reduce local-agent runtime overhead, not to introduce a new model
igor'sLAB published "AMD GAIA 0.27: C++ Reduces the Overhead of Local AI Agents" on 2026-12-01. Going by the supplied summary, the coverage is about agent runtime efficiency, not a model release. That scoping is the most useful part of the report, and the part I can repeat without hedging: whatever changed, it sits in the orchestration layer around a local model, not in a new checkpoint.
Everything past that is attributed, not adopted. The headline says a C++ implementation reduces overhead. It does not say which components moved, what "overhead" was measured, what the baseline was, or whether model, quantization, and prompt were held fixed. Headlines compress by design. A benchmark can't inherit that compression.
Separate the supplied headline and summary from unverified implementation details, release contents, and performance claims
Here is the ledger I'd want filled before writing a line of comparison code. Every "unknown" is a blocker, not a footnote.
| Claim element | Status from supplied material | What would settle it |
|---|---|---|
| GAIA 0.27 exists as a released version | Unverified. 0.27 appears in the headline and summary only. | A tagged release in the official repository, or an official release note naming 0.27. |
| Some component moved to C++ | Unverified. No component named. | A diff between the baseline tag and the target tag showing added C/C++ sources, build config, and bindings. |
| Overhead was reduced | Unverified. No metric, no magnitude, no baseline. | A stated benchmark configuration plus reproducible numbers. |
| Local agents are the affected workload | Consistent with the summary's framing. | Confirmed by release notes describing the agent/CLI path rather than only the chat UI. |
| No new model was introduced | Stated by the summary. | Release notes listing model artifacts and backend changes. |
Don't fill the "verdict" field by inference from a version number. If 0.27 turns out to be a preview build, an internal label, or a label the report itself assigned, every comparison you run against "0.26" measures something other than what the headline promised — and you won't know which.
State the technical position: lower orchestration cost matters only when equivalent workloads show measurable improvements without reduced correctness
My position, stated plainly so it can be attacked:
The implementation language of an agent runtime is a weak predictor of its overhead. What matters is the orchestration fraction — the share of end-to-end wall time spent outside inference and tool execution — and the process topology that produces it.
A C++ rewrite can cut that fraction through faster startup, cheaper JSON handling, fewer process crossings, and lower per-call dispatch cost. It can also change nothing, because the agent spends 80% of its life waiting on a 4-billion-parameter model on an NPU. The headline can't tell those two worlds apart. A benchmark can.
So the rule for everything below: reduced overhead counts only if an equivalent workload — identical model, prompts, tool schemas, and outputs — shows a measurable improvement and the same or better task correctness. Faster wrong answers are not a speedup.
Verify the Release and Define a Defensible Comparison
Check official GAIA release notes, tagged source, build instructions, and relevant changes before describing what moved into C++
Start from the repository, not the article. Pin by tag or commit SHA, never by branch name.
## Enumerate remote tags without trusting your local clone
git ls-remote --tags <repo-url> | grep -E 'v?0\.(2[0-9])'
## Once a baseline and a target tag are chosen, record both SHAs
git rev-parse vBASE vTARGET
## What actually changed, by language, not by vibes
git diff --stat vBASE..vTARGET
git diff --numstat vBASE..vTARGET \
| awk '{printf "%-40s +%s -%s\n", $3, $1, $2}' \
| sort -t+ -k2 -rn | head -40
The decision rule matters more than the commands: if no tag named 0.27 exists when you run this, you aren't benchmarking 0.27. Pick the closest tagged release, label the target head-<short-sha>, and say so in the results table. "Head of main at a1b2c3d" is honest. A mislabelled "0.27" is not.
Then read the build instructions at the target tag. A C++ component implies a toolchain — compiler, CMake or the equivalent, and either a wheel with prebuilt extensions or a source build. Record which you used. A prebuilt wheel and a from-source build of the same commit are two different runtimes, and mixing them across variants produces a difference you'll misattribute to the language.
Select a documented predecessor or supported implementation baseline; do not assume GAIA provides a Python-versus-C++ switch
This is the trap. It's tempting to imagine a flag — --runtime=py versus --runtime=cpp — that isolates the change. Don't assume it exists. If the repository doesn't document a runtime selector, your comparison measures the combined set of every change between the two tags, and the C++ work is one contributor among however many commits landed in between.
Look for a selector explicitly:
- Does the CLI help at the target tag list a backend or runtime choice?
- Does the configuration file accept an implementation or engine key?
- Do the docs describe a fallback pure-language path for unsupported platforms?
If one exists and is documented, you can run a paired comparison with a cheap isolation story. If none does, your comparison is tag-to-tag, and the honest label is "combined release delta", not "C++ speedup".
Explain attribution limits: a release comparison measures the combined changes unless the C++ implementation can be isolated with equivalent configurations
Put the attribution limit in the results document, not just the discussion. Something close to this:
The comparison between vBASE and vTARGET includes all merged changes in that range. Components moved to a compiled implementation are among them. Any measured difference is attributable to the combined delta. Isolation of the compiled path was not possible with documented configuration at the time of measurement.
That paragraph prevents the most common failure in benchmark write-ups: measuring a release delta, then billing it to the most interesting commit in the diff.
Establish an evidence ledger distinguishing source-reported claims, verified implementation facts, proposed measurements, and untested hypotheses
Four buckets, and nothing moves between them silently.
| Bucket | Contents | Allowed phrasing |
|---|---|---|
| Source-reported | igor'sLAB headline, summary, publication date, framing | "the report says", "per the report" |
| Verified implementation | Tag SHAs, diff stats, build mode, backend version, model revision | "the tag contains", "the build log shows" |
| Measured | Your JSONL, your analysis output, your trial counts | "in 100 trials, median was" |
| Hypothesis | Why a number moved, whether language caused it, expected gains | "likely", "my guess", "untested" |
The moment a hypothesis is written in the same voice as a measurement, the post becomes marketing.
Define Overhead Before Measuring It
Map the execution path: process launch, initialization, model requests, response parsing, tool dispatch, tool execution, and final response
Overhead isn't a feeling. It's a residual, and to compute a residual you need the path.
| Stage | Boundary | Who can time it |
|---|---|---|
| Process launch | spawn to first instruction of the runtime | Controller only |
| Runtime init | Runtime start to dependency-ready | Controller via readiness signal |
| Model load | Backend start to model resident | Backend logs, if they exist |
| Request build | Prompt assembly and serialization | Runtime instrumentation or a wrapper |
| Model request (client view) | Send to full response received | Controller or runtime |
| Response parse | Bytes to structured object | Runtime instrumentation |
| Tool dispatch | Decision to call, through transport, to tool entry | Both sides, correlated by ID |
| Tool execution | Tool entry to tool return | Fixture side |
| Final response | Result to caller | Controller |
Any stage you can't time from both sides gets timed from one side and labelled that way.
Define orchestration overhead as measured work outside explicitly instrumented inference and tool-execution boundaries
Concretely: overhead = critical path wall time − (instrumented inference spans + instrumented tool-execution spans).
Two words carry all the weight.
Measured — the subtracted spans have to exist as spans. If you can't instrument inference on that backend, you don't have an overhead number; you have an end-to-end number with a hole in it. Call it end-to-end latency and stop.
Instrumented — the tool-execution boundary is where the tool's own code starts and ends. Dispatch, serialization, IPC, and result parsing are all orchestration. That's deliberate: those are exactly the costs a compiled implementation would plausibly cut.
Explain why client-observed model-request time includes transport and queuing, and cannot automatically be labeled inference time
A controller that sends a prompt and waits for a response measures queue wait, HTTP or IPC transport, server-side prompt processing, token generation, and response transfer. Call that "inference time" and subtract it, and you get a flattering, wrong overhead figure — transport and queueing land in the inference bucket and the residual you're trying to measure shrinks.
If the backend exposes its own timings (many inference servers report prompt-eval and generation durations), use them and label the difference: client_observed − server_reported = transport_and_queue. On a local NPU that gap is usually small but not zero, and it's worth reporting because otherwise it hides inside inference.
Use critical-path spans rather than naive subtraction when streaming, asynchronous execution, or parallel tools overlap
If the agent fires three tool calls concurrently, summing their durations triple-counts wall time and can drive your computed overhead negative. That's not a runtime bug; it's an arithmetic bug.
Use the critical path: at any instant on the wall clock, at most one span contributes.
- Build the span tree from parent IDs, not from timestamps.
- For parallel siblings, take the union of their intervals, not the sum.
- Compute the residual against that union.
A textual critical-path summary is enough to audit:
run 7c2e total 8421 ms
inference (server-reported) 6180 ms [############------]
tool exec (union of 4 calls) 960 ms [##----------------]
residual (orchestration) 1281 ms [###---------------]
transport/queue (derived) 94 ms
Freeze the Hardware, Model, and Runtime Environment
Record CPU, accelerator, RAM, operating system, drivers, power profile, GAIA commit, build mode, compiler, and inference backend
An unfrozen environment is not a benchmark. Here's the list, as a checklist you can paste into the run manifest:
- CPU model and core count; P-core/E-core topology if heterogeneous.
- Accelerator: NPU model and driver version, or GPU model and driver/ROCm version.
- RAM capacity and configured speed.
- OS build number.
- Power profile, and whether the machine was on battery or mains. On a laptop this alone can shift results by tens of percent.
- GAIA commit SHA, plus whether it was a tagged release.
- Build mode: prebuilt wheel, local build, compiler and version, optimization flags if from source.
- Inference backend and its version.
Pin the model identifier and revision, quantization, context limits, decoding settings, prompt bytes, and tool schemas
Model-level pinning is where most local-agent benchmarks quietly diverge. Record:
| Field | Why it must be pinned |
|---|---|
| Model ID and revision/hash | Two pulls of "the same" name can differ |
| Quantization (e.g. an int4 variant) | Dominates both latency and memory |
| Context length limit | Changes prefill cost and memory reservation |
| Temperature, top-p, max tokens | Changes generation length, which changes wall time |
| Exact prompt bytes and byte count | A reworded prompt is a different task |
| Tool schema JSON, byte-identical | Schema size changes dispatch and prefill cost |
Store the tool schemas as files and hash them. If the schema hash differs between variants, the comparison is void.
Capture a machine-readable run manifest and redact secrets, private paths, and credentials
{
"manifestVersion": 1,
"recordedAt": "2026-12-01T00:00:00Z",
"hardware": {
"cpu": "<model string>",
"cores": 0,
"accelerator": "<npu or gpu model>",
"acceleratorDriver": "<version>",
"ramGb": 0,
"os": "<build string>",
"powerProfile": "<profile name>",
"onAC": true
},
"runtime": {
"gaiaCommit": "<sha>",
"gaiaTag": "<tag or null>",
"buildMode": "wheel | source",
"compiler": "<name and version or null>",
"backend": "<name>",
"backendVersion": "<version>"
},
"model": {
"id": "<identifier>",
"revision": "<hash>",
"quantization": "<label>",
"contextLimit": 0,
"decoding": { "temperature": 0, "topP": 1, "maxTokens": 0 },
"promptSha256": "<hex>",
"toolSchemaSha256": "<hex>"
},
"paths": { "workspace": "<redacted>", "logs": "<redacted>" }
}
Redaction rule: hash or replace usernames, absolute home paths, hostnames, and any token in the environment. The manifest gets published — treat it as public.
Define process-cold, model-cold, and warmed conditions separately; record thermal state and background activity rather than conflating them
Three conditions, measured separately, never averaged together:
- Process-cold, model-cold — fresh process, model not in page cache or backend memory. Closest to a user double-clicking an icon.
- Process-cold, model-warm — fresh process, model already resident or cached. Isolates runtime startup from model loading.
- Warmed — persistent runtime, repeated requests. Isolates steady-state overhead.
Also record chassis and CPU temperature at trial start if you can get it, whether the machine was charging, and what else was running. A background indexer during trial 12 of 30 is a result, not an excuse — log it, and if it's severe, discard the block and say you did.
Build Three Benchmark Tracks That Answer Different Questions
Track A—deterministic orchestration replay using fixed model responses and local tools, only through a supported boundary or a documented test adapter
Replay replaces the model with a fixed sequence of responses, which makes the request path, parsing, and tool dispatch deterministic. It's the only track that isolates orchestration cleanly, because model variance is gone entirely.
Constraint: use a documented boundary only. If the runtime exposes a test adapter, a mock backend, or a documented pluggable inference interface, use it. Don't monkey-patch internals in a way that changes code paths — you'll measure your patch.
Track A asks: how long does the runtime take to move bytes around, given the model is free?
Track A cannot answer: anything about model quality, token counts, or realistic latency.
Track B—fixed prompts against the same real model and backend to expose request-path and inference variability
Same prompts, same pinned model, same backend, real sampling settings. Run each prompt many times. This track measures variance: how much of your end-to-end spread comes from generation length rather than orchestration. Skip it and you'll read token-count noise as a runtime regression.
Keep the prompts fixed across variants and record output token counts. If variant A produced more tokens than variant B for the same prompt and temperature, its extra wall time isn't overhead.
Track C—bounded end-to-end agent tasks with explicit correctness criteria and tool-call budgets
Real tasks, real model, hard budgets: maximum steps, maximum tool calls, wall-clock timeout, and a pass/fail criterion defined before the run. This is the only track that tells you whether the thing is actually faster at doing the job.
State the limits of each track: replay does not establish model quality, and real-model timing alone does not isolate runtime overhead
| Track | Isolates orchestration | Realistic latency | Establishes correctness | Cannot tell you |
|---|---|---|---|---|
| A — replay | Yes, if the boundary is documented | No | Only that the runtime wired results correctly | Anything about inference |
| B — fixed prompts | Weakly | Yes, for one turn | No | Multi-step behaviour |
| C — bounded tasks | No | Yes | Yes | Which stage produced the difference |
Report all three side by side, and resist collapsing them into one "overhead" number.
Implement a Small, Auditable Measurement Harness
Provide a JavaScript controller that launches supported GAIA commands without shell interpolation, enforces timeouts, captures exit status, and writes JSONL
Node is a reasonable controller here: spawn with an argv array and shell: false means no quoting bugs, and performance.now() is monotonic within the process.
import { spawn } from "node:child_process";
const BIN = process.env.GAIA_BIN; // absolute path, recorded in manifest
if (!BIN || !BIN.startsWith("/")) throw new Error("GAIA_BIN must be absolute");
const OUT = process.env.BENCH_JSONL ?? "runs.jsonl";
export function runOnce({
variant, scenario, track, trial, args,
timeoutMs = 120_000, env = {},
}) {
const runId = randomUUID();
const startMono = performance.now();
return new Promise((resolve) => {
const child = spawn(BIN, args, {
shell: false,
stdio: ["ignore", "pipe", "pipe"],
env: { ...process.env, ...env },
detached: process.platform !== "win32", // own process group for tree kill
});
let stdout = "", stderr = "", timedOut = false, settled = false;
const timers = [];
const finish = (outcome, extra = {}) => {
if (settled) return;
settled = true;
timers.forEach(clearTimeout);
const record = {
runId, variant, scenario, track, trial,
span: "process_lifetime",
startMono: Number(startMono.toFixed(3)),
durMono: Number((performance.now() - startMono).toFixed(3)),
outcome,
exitCode: child.exitCode,
signal: child.signalCode,
stdoutBytes: Buffer.byteLength(stdout),
stderrTail: stderr.slice(-2048),
...extra,
};
appendFileSync(OUT, JSON.stringify(record) + "\n");
resolve(record);
};
timers.push(setTimeout(() => {
timedOut = true;
killTree(child);
finish("timeout");
}, timeoutMs));
child.stdout.on("data", (b) => { stdout += b.toString("utf8"); });
child.stderr.on("data", (b) => { stderr += b.toString("utf8"); });
child.on("error", (err) => finish("spawn_error", { error: String(err) }));
child.on("close", (code) => {
if (timedOut) return;
finish(code === 0 ? "ok" : "nonzero_exit");
});
});
}
function killTree(child) {
if (!child.pid) return;
try {
if (process.platform === "win32") {
spawn("taskkill", ["/PID", String(child.pid), "/T", "/F"],
{ shell: false, stdio: "ignore" });
} else {
process.kill(-child.pid, "SIGKILL");
}
} catch { /* already gone */ }
}Two details worth defending. detached: true on POSIX puts the child in its own process group, so kill(-pid) reaps the inference server and any tool subprocesses — otherwise a timed-out trial leaves a model resident and contaminates the next one. And shell: false means a path with a space, or an argument containing a semicolon, can't turn into a second command.
Define a trace schema with run ID, variant, scenario, span, monotonic duration, outcome, and correctness result
| Field | Type | Meaning |
|---|---|---|
runId | UUID | Joins all spans from one trial, across processes |
variant | string | baseline or target, never a language name |
scenario | string | e.g. tool:noop, startup:cold |
track | "A" | "B" | "C" | Which question this answers |
trial | integer | Index within a block |
span | string | Stage name from the execution map |
startMono | number (ms) | Monotonic, in that clock domain |
durMono | number (ms) | Duration, same domain |
clockDomain | string | controller | runtime | tool | backend |
outcome | enum | ok, timeout, nonzero_exit, spawn_error |
correct | boolean | null | Set only when a criterion exists |
correct being nullable matters. Replay trials have a correctness check; startup trials don't. A null is information.
Measure durations within each clock domain and correlate process events by IDs instead of assuming timestamps are directly comparable
performance.now() in the controller and performance.now() inside a Python or C++ runtime share no epoch. Correlate them by comparing timestamps and the offset drifts by seconds on a busy machine.
Two workable approaches:
- ID correlation (preferred). Pass
runIdinto the runtime. Every instrumented span logsrunId. Durations are computed within a domain; ordering is reconstructed from the span tree, not from raw timestamps. - Shared monotonic clock. On Linux,
CLOCK_MONOTONICis system-wide, so both sides can log the same reference and offsets mean something (modulo suspend). Even then, join by ID and use the shared clock only for rendering.
On Windows, prefer IDs. Wall-clock conversion via performance.timeOrigin is fine for human-readable traces but is subject to clock adjustment.
Quantify instrumentation cost with tracing enabled and disabled; keep logging outside timed regions where possible
Instrumentation isn't free, and per-tool-call logging is where it bites. Run the whole matrix twice: tracing on, then off.
## Same scenario, tracing toggled, alternating order to blunt drift
BENCH_TRACE=0 node bench/run.mjs --scenario tool:noop --trials 100 --out off.jsonl
BENCH_TRACE=1 node bench/run.mjs --scenario tool:noop --trials 100 --out on.jsonl
Report the delta. If tracing costs more than a few percent on the tool path, buffer records in memory and flush after the timed region instead of writing JSONL per span. Never let a console.log sit inside a measured span.
Include a fixture trace and parser output labeled as illustrative unless an actual captured run is available
The block below is synthetic data I generated to exercise the parser. It is not a GAIA run, and the numbers say nothing about GAIA.
{"runId":"7c2e","track":"A","variant":"baseline","scenario":"tool:noop","trial":1,"span":"dispatch","startMono":412.7,"durMono":0.9,"clockDomain":"runtime","outcome":"ok"}
{"runId":"7c2e","track":"A","variant":"baseline","scenario":"tool:noop","trial":1,"span":"ipc_roundtrip","startMono":413.6,"durMono":1.4,"clockDomain":"tool","outcome":"ok","correct":true}
{"runId":"7c2e","track":"A","variant":"baseline","scenario":"tool:noop","trial":1,"span":"result_parse","startMono":415.0,"durMono":0.6,"clockDomain":"runtime","outcome":"ok"}
Parser output on that fixture:
scenario variant n median_ms p95_ms fails incomplete
tool:noop baseline 1 2.9 2.9 0 0
One row, one trial, n=1. Any table with n=1 is a smoke test, and the parser should refuse to compute a p95 for it — which is exactly what a well-behaved analysis script does.
Measure Startup Through a Real Readiness Boundary
Separate launch-to-runtime-ready from launch-to-model-ready and launch-to-first-successful-task
Three startup numbers, three different decisions:
| Metric | Definition | What it justifies |
|---|---|---|
launch_to_runtime_ready | spawn to the documented readiness signal (CLI prompt available, health endpoint responding) | Whether the process/runtime layer is fast |
launch_to_model_ready | spawn to backend confirming the model is loaded | Whether a user must wait for a cold model |
launch_to_first_task_ok | spawn to a successful minimal task with validated output | The number a user actually experiences |
Use a documented readiness signal or bounded functional probe; do not treat the first log line as readiness
The first log line is emitted by code that runs before anything useful exists. Treat it as readiness and you flatter startup by hundreds of milliseconds — and if the compiled implementation logs earlier or later than the baseline, you flatter one variant specifically.
Acceptable readiness sources, in order of preference:
- A documented readiness line or health endpoint.
- A bounded functional probe: issue the smallest supported task and require exit code 0 plus an expected substring, with a hard timeout.
If you fall back to (2), the probe cost sits inside the measured window. Say so. Don't subtract it.
Run fresh-process trials separately from persistent-runtime trials and report whether model loading is included
## Fresh process each trial, model state controlled by OS cache + backend policy
for i in $(seq 1 30); do
node bench/startup.mjs --mode process-cold --trial "$i" --out startup-cold.jsonl
done
## Persistent runtime: one process, 30 sequential probe tasks
node bench/startup.mjs --mode persistent --tasks 30 --out startup-warm.jsonl
Never pool these. A persistent-runtime median and a fresh-process median describe different products.
Show a startup result table with trial count, median, p95, failure count, and explicitly labeled measurement status
| Condition | Trials | Median | p95 | Failures | Status |
|---|---|---|---|---|---|
| process-cold, model-cold, launch→runtime-ready | 30 | not measured | not measured | — | No verified 0.27 build available |
| process-cold, model-warm, launch→runtime-ready | 30 | not measured | not measured | — | No verified 0.27 build available |
| process-cold, model-cold, launch→model-ready | 30 | not measured | not measured | — | Backend timing source unconfirmed |
| process-cold, launch→first-task-ok | 30 | not measured | not measured | — | Requires task fixture from Track C |
| persistent, warmed | 30 | not measured | not measured | — | No verified 0.27 build available |
Leaving these blank is the correct outcome. Filling them with plausible-looking milliseconds would be the single worst thing this post could do.
Measure Memory Across the Whole Agent Process Tree
Capture steady-state and peak resident memory for the controller, runtime, children, and inference server without hiding excluded processes
The agent is rarely one process. Controller, CLI/runtime, possibly a backend server, possibly tool subprocesses. Measure the tree, and publish the list of what you included.
On Linux, a cgroup is the cleanest instrument — it captures the whole tree including processes you forgot existed:
## Requires delegation; adjust the path to your delegated subtree
CG=/sys/fs/cgroup/gaia-bench
mkdir -p "$CG"
echo $$ > "$CG/cgroup.procs" # controller and every descendant land here
## Reset the peak marker if the kernel exposes it as writable
echo 0 > "$CG/memory.peak" 2>/dev/null || true
## ... run the trial ...
cat "$CG/memory.peak" # peak bytes, whole tree
cat "$CG/memory.current" # current bytes, whole tree
memory.peak needs a kernel with the cgroup v2 memory controller and peak tracking. If the reset write fails, the value is high-water since cgroup creation — so create a fresh cgroup per trial. If cgroups are unavailable, fall back to per-process sampling and say the peak may have been missed.
On Windows the analogue is a job object for tree containment, plus PeakWorkingSet64 and private working set counters per process.
Explain RSS double-counting, proportional-memory accounting where available, and separately reported accelerator memory
RSS counts every shared page in every process that maps it. Sum RSS across a tree and you overstate memory, sometimes by hundreds of megabytes when a backend shares model weights with the CLI.
Use PSS where available; it divides shared pages among mappers:
awk '/^Pss:/ {sum += $2} END {print sum " kB PSS"}' /proc/$PID/smaps_rollup
Where PSS isn't available (Windows, macOS), report private working set per process and note explicitly that shared memory isn't attributed.
Then the accelerator. On an integrated NPU or iGPU, accelerator-allocated memory comes out of the same system RAM — so adding "NPU memory" to RSS double-counts. Report them in separate columns and say they overlap. On a discrete GPU, report dedicated VRAM separately and note it is genuinely additive.
Sample initialization, idle readiness, tool execution, and task completion; disclose that polling can miss short-lived peaks
Four sampling points, because peaks land at different stages: initialization allocates, idle readiness holds a baseline, tool execution spikes and releases, task completion may retain KV state.
Polling at 100 ms misses a 20 ms tool spike. Disclose it. Cgroup peak tracking doesn't have that problem, which is why it's preferred.
Compare memory under the same model-residency policy and distinguish runtime savings from changes in model loading
If variant B keeps the model resident and variant A doesn't, you aren't comparing runtimes — you're comparing residency policies. Pin the policy, state it in the manifest, and if you can't pin it, report memory per condition instead of one headline number.
Isolate Tool-Call Latency with Safe Local Fixtures
Define deterministic no-op, small-JSON, and temporary-file fixtures with fixed payload sizes and no external network access
| Fixture | Input | Behaviour | Measures |
|---|---|---|---|
noop | empty object | returns {"ok":true} | dispatch, IPC, parse floor |
echo-json | 1 KiB fixed JSON | returns input unchanged | serialization cost at known size |
tmp-file | fixed 4 KiB file written by setup | reads file, returns SHA-256 | file-path crossing and I/O |
slow-50 | empty object | sleeps 50 ms, returns {"ok":true} | separates dispatch overhead from tool wall time |
No network. No external APIs. Fixed byte sizes, verified by hash at setup so a fixture can't silently change size between variants.
Instrument parsing, validation, dispatch, IPC, tool execution, and result serialization where observable
Six spans per call. slow-50 is the control: subtract 50 ms and the residual should match the noop fixture's total. If it doesn't, your instrumentation is leaking time between stages.
Test sequential calls before bounded concurrency, while keeping tool schemas, outputs, and transport settings identical
Sequential first — one span per call, clean attribution. Then bounded concurrency at 2, 4, and 8 in-flight calls with the same fixtures, same schema bytes, same transport. Concurrency moves where the cost sits (queueing, thread wakeups, serialization contention), and a compiled implementation may behave differently there, which is the interesting case.
But never compare a sequential baseline to a concurrent target. That's a benchmark of your configuration change.
Check returned values and error handling so faster execution cannot conceal skipped validation, missing calls, or incorrect results
For every scenario, assert:
- The returned value equals the expected value.
- The tool was invoked exactly the expected number of times (instrument the fixture, not the runtime).
- A malformed argument produces an error, not a silent coercion.
- A tool that raises produces an error path the agent handles, not a hang.
- Budgets are enforced: exceeding max tool calls terminates the run.
A validation-skipping "optimization" shows up as a beautiful tool-latency win. These assertions are how you catch it.
Test End-to-End Agent Work Without Benchmarking a Different Task
Use a synthetic workspace task with a known answer, such as reading two fixture files and returning a validated summary
Task definition, written before the run:
Workspace: two files, a.txt and b.txt, each containing a known fixed string.
Instruction: "Read a.txt and b.txt. Return a JSON object with keys
'a' and 'b', each the SHA-256 hex of that file's content, and 'combined'
the SHA-256 of the concatenation of the two file contents in order."
Success: response parses as JSON and all three hashes match ground truth.
It's boring, deterministic, and checkable by a script. That's the point — the model does the reasoning, but the answer isn't a matter of opinion.
Specify task inputs, success criterion, maximum steps, timeouts, and proposed trial count before running
| Parameter | Value |
|---|---|
| Inputs | Two fixtures, content hash recorded in manifest |
| Success criterion | Exact match on three SHA-256 values, valid JSON |
| Max tool calls | 8 |
| Max steps | 12 |
| Wall-clock timeout | 120 s |
| Proposed trials | 100 per variant |
| Failure handling | Retained; reported separately from latency |
Record completion time alongside tool count, model-request count, token usage when available, retries, and exact task success
Latency alone isn't the result. A variant that finishes in 6 s by making two model requests instead of five has changed the task, not optimized the runtime.
Per trial, record totalMs, toolCalls, modelRequests, promptTokens, outputTokens (when the backend reports them), retries, and correct. Then report correctness-qualified latency — computed only over successful trials — clearly separated from overall success rate.
Name the exact model and revision for every behavioral finding; disclose intermittent failures and avoid generalizing from one model
If the target build completes 94/100 and the baseline 96/100, that difference isn't automatically a regression; at n=100 the confidence interval on a ~95% rate easily spans both. State the counts, state the interval, and don't convert a two-trial difference into a claim.
And name the model for every behavioural statement. "The agent completed the task" means nothing without the model, revision, and quantization attached.
Analyze Repeated Trials Without Manufacturing Precision
Propose 30 measured trials per startup condition and 100 per short tool scenario, with separate warm-up runs and disclosed limits on tail estimates
Thirty is enough for a stable median on startup and nowhere near enough for a p99. One hundred gives a defensible p95 order statistic, but the confidence interval on that p95 is wide — usually one or two order statistics either side. Say that in the report rather than printing a two-decimal p95 as if it were a wall.
Warm-up runs are discarded and counted separately: the first three for startup, the first five for tool scenarios. Report that you discarded them.
Alternate or randomize variant order in paired blocks to reduce thermal drift and background-load bias
Alternate in blocks: A B B A A B B A, not AAAA BBBB. Paired blocks mean drift hits both variants roughly equally. Better still, randomize within block and record the order so it can be checked.
Report absolute differences, percentage changes, medians, uncertainty intervals, and distribution plots or textual summaries where supported
Every comparison gets: median A, median B, absolute delta, percent delta, bootstrap confidence interval on the delta. Use a percentile bootstrap (10,000 resamples is plenty) so you don't need distributional assumptions — latency data is never normal.
A textual distribution summary works when a plot isn't available:
tool:noop baseline n=100 p10 2.6 p50 2.9 p90 3.4 max 6.1 fails 0
tool:noop target n=100 p10 2.1 p50 2.3 p90 2.7 max 4.8 fails 0
delta p50 -0.6 ms (-20.7%) bootstrap 95% CI [-0.8, -0.4]
Retain failed and timed-out trials, report success rate separately, and avoid presenting successful-only latency as the complete result
A timeout is a data point. Dropping timeouts and reporting the median of the survivors systematically understates latency and hides instability. Report total attempted, succeeded, failed, timed out — then latency over successes, labelled as such.
Apply Amdahl's law as a labeled calculation to explain why substantial orchestration savings may produce modest end-to-end gains
Speedup from optimizing a fraction f of the work by factor s:
S = 1 / ((1 - f) + f / s)
Computed values, so the arithmetic is checkable:
Orchestration share f | Best case, s unbounded | At s = 2 (halve orchestration) | At s = 1.5 |
|---|---|---|---|
| 5% | 1.053 (5.3% faster) | 1.026 | 1.017 |
| 10% | 1.111 (11.1% faster) | 1.053 | 1.034 |
| 20% | 1.250 (25% faster) | 1.111 | 1.081 |
| 40% | 1.667 (66.7% faster) | 1.250 | 1.176 |
| 70% | 3.333 (233% faster) | 1.538 | 1.290 |
Check the 20% / s=2 cell: 1 / (0.8 + 0.1) = 1.111. That's the whole argument in one number. If a local agent spends a fifth of its wall time in orchestration and a compiled implementation halves that cost — a generous assumption — end-to-end improves by about 11%. Not nothing. Not a headline.
The claim only escalates to something dramatic if orchestration dominates: f above roughly 0.6, which happens in short-lived agents that do almost no inference, and in tool-call-heavy loops against a fast model.
Present Results That Readers Can Audit
Publish the run manifest, supported launch commands, fixture code, raw JSONL, analysis script, and result-table generation steps
Six artifacts, or the numbers aren't checkable:
manifest.json— hardware, runtime, model, redacted paths.commands.md— the exact argv arrays, no shell pipelines.fixtures/— the four tool fixtures and the two task files, with hashes.runs.jsonl— raw, unedited, including timeouts.analyze.mjs— bootstrap, medians, percentiles.make-tables.sh— regenerates the tables in this post fromruns.jsonl.
If a reader can't rerun make-tables.sh and get your table, the table is decoration.
Keep measured results, source-reported claims, and illustrative output visibly separate; leave unavailable measurements unfilled rather than inventing numbers
Three visibly distinct treatments:
- Measured: past tense, with n and interval, e.g. "in 100 trials, median 2.9 ms (95% CI 2.8–3.1)".
- Source-reported: attributed, e.g. "the report describes the change as reducing overhead".
- Illustrative: labelled at the point of display, e.g. "synthetic fixture output, not a GAIA run".
Anything else stays blank.
Compare startup, runtime memory, tool-path latency, and correctness-qualified task completion in one evidence table
| Metric | Baseline | Target | Delta | n | Status |
|---|---|---|---|---|---|
| launch→runtime-ready, median | not measured | not measured | — | 30 planned | Blocked: no verified 0.27 build |
| launch→first-task-ok, median | not measured | not measured | — | 30 planned | Blocked |
| Tree peak memory (PSS), MB | not measured | not measured | — | 30 planned | Blocked |
tool:noop dispatch median | not measured | not measured | — | 100 planned | Blocked |
| Task success rate (Track C) | not measured | not measured | — | 100 planned | Blocked |
| Correctness-qualified completion, p50 | not measured | not measured | — | — | Blocked |
Every row is blocked for the same reason: no verified target build on pinned hardware. That's a legitimate state to publish. The alternative — a table of numbers with no provenance — is the failure mode this whole post exists to prevent.
Explain what would support the overhead claim, what would contradict it, and what would remain inconclusive about C++ specifically
Would support the claim:
- Track A replay shows a lower orchestration residual with identical tool outputs and identical call counts.
- Startup to runtime-ready improves, and launch-to-first-task-ok improves by a similar absolute amount (so it isn't just a log-line shift).
- Tree peak memory is lower at the same model residency.
- Track C success rate is unchanged or better, with the same tool-call and model-request counts.
Would contradict it:
- Orchestration residual is unchanged in replay.
- The end-to-end improvement disappears once token counts are held fixed (it was generation variance).
- Tool latency improves but fixture call counts drop, or validation errors stop being raised.
- Improvements appear only in a condition where the model was warm in one variant and cold in the other.
Would remain inconclusive about C++ specifically:
Everything else. Unless the repository documents a runtime selector, a tag-to-tag comparison measures the whole release delta — new features, prompt changes, dependency bumps, and the compiled path together. Even with a clean 11% end-to-end win, attributing it to the implementation language takes an isolation the release may not offer. The honest conclusion is "the release is faster on this workload", not "C++ is why".
Turn Measurements into Deployment Decisions
Explain where improvements could matter: short-lived agents, frequent tool calls, memory-constrained systems, and persistent services
Orchestration savings are regime-dependent, and the four regimes are easy to tell apart with the three tracks:
- Short-lived agents — CLI invocations that answer one question and exit.
fcan be large here because process startup and dependency import are a big share of a few seconds of work. This is where a compiled runtime plausibly moves the needle most. - Frequent tool calls — a loop making dozens of small calls per task. Dispatch and serialization costs multiply and per-call savings compound. Track A with bounded concurrency answers this directly.
- Memory-constrained systems — small-RAM laptops and handhelds where a resident model plus runtime leaves little headroom. Footprint reduction is worth more than latency there, and the NPU-shares-system-RAM accounting matters.
- Persistent services — a long-running agent server. Startup amortizes to nothing; only steady-state orchestration and memory count, and a 5% steady-state win usually isn't worth a migration.
Match mitigations to observed bottlenecks: process reuse, reduced serialization, fewer process crossings, or inference-backend tuning
Don't apply a language migration to a queueing problem.
| Observed bottleneck | Cheapest effective fix |
|---|---|
| Repeated startup dominates | Reuse a persistent runtime; pre-warm the model at service start |
| Per-call dispatch is the cost | Reduce process crossings: in-process tool calls instead of subprocess IPC |
| Large payloads between stages | Trim tool schemas, cap tool output size, avoid re-serializing |
| Inference is 80%+ of wall time | Backend tuning, quantization choice, prompt/output length — not the orchestration layer |
| Memory spikes at tool execution | Bound concurrency, stream tool results, cap context growth |
That last row is where most local-agent deployments actually live. If inference is 80% of the wall clock, an orchestration rewrite has a hard ceiling around 25% — and realistically far less.
Preserve authorization, schema validation, timeouts, and resource limits rather than removing safeguards to improve benchmark scores
Three things must survive any optimization, and must be asserted in the harness rather than assumed:
- Authorization — tool permissions and scope checks still enforced. A faster dispatch that skips a permission check is a vulnerability with a nice latency chart.
- Schema validation — malformed tool arguments still rejected. Assert on the error path, not just the happy path.
- Timeouts and budgets — max steps, max tool calls, wall-clock limits still enforced. Test them by exceeding them on purpose.
Put these in the harness as failing assertions, not as prose in a security section. A benchmark that silently tolerates a skipped validation will one day reward one.
Conclude with a conditional verdict on GAIA 0.27 based on evidence, not implementation language or an unverified headline
Here's the verdict I can defend today, with the evidence I actually have:
On the report. igor'sLAB, on 2026-12-01, described GAIA 0.27 as using C++ to reduce local-agent runtime overhead, framed as a runtime-efficiency story rather than a model release. I couldn't verify the article body, the release contents, or any performance figure, and I'm not going to launder a headline into a finding.
On the claim's plausibility. The mechanism is real: startup cost, serialization, and process crossings are genuine orchestration overhead, and compiled implementations reduce them. The magnitude, applied to end-to-end agent latency, is bounded by Amdahl's law and by how much of the wall clock inference eats. For a persistent agent where inference dominates, expect single-digit percentages at best. For a short-lived CLI agent, expect more — and measure startup, not throughput.
On what would change my mind. A published run manifest, identical tool schemas and call counts, unchanged task success rate, and a lower orchestration residual in replay. If that exists, the claim is established for that workload on that hardware — and still not automatically attributable to the language.
On what to do this week. Build fixtures/ and controller.mjs. Run Track A against the build you already have and compute f, the orchestration fraction, before deciding whether a runtime change is even the right lever. If f is under 0.15, your problem isn't orchestration, and no rewrite will fix it.
Further Reading and Source Verification
Preserve the supplied igor'sLAB report reference and add its direct publisher URL only after resolving and verifying it
- igor'sLAB, "AMD GAIA 0.27: C++ Reduces the Overhead of Local AI Agents", published 2026-12-01 — the supplied source, accessed via a Google News RSS item (RSS entry).
- The publisher-direct URL wasn't resolved for this post. The RSS link redirects and I haven't confirmed the canonical article URL, so I'm not printing a guessed one. Replace this bullet with the verified publisher URL before republishing.
Link verified official GAIA release notes, source changes, and benchmark-relevant backend documentation without inventing release URLs or unsupported commands
- AMD GAIA project repository — the authoritative source for tags, release notes, build instructions, and CLI help. Check
git ls-remote --tagsagainst it before labelling any variant "0.27". - ONNX Runtime GenAI — relevant if the pinned build uses it as the inference backend; it's where the server-side prompt-eval and generation timing fields come from, if you'd rather use those than client-observed time.
- Linux kernel cgroup v2 documentation — the memory controller,
memory.peak, andmemory.currentsemantics referenced in the memory section. - proc(5) man page —
smaps_rollupand PSS accounting, used to avoid RSS double-counting. - Node.js
child_processdocumentation —spawnoptions,detachedprocess groups, and Windows signal caveats.
I have deliberately not linked a GAIA 0.27 release page. If that page exists, it belongs at the top of this list with the tag SHA beside it — and until someone confirms it, the honest state of this benchmark is "harness ready, target unverified".
More posts

Where Bun's 3x Speedup Disappears: A Reproducible Benchmark Harness for Node.js Workloads
A reproducible benchmark harness reveals where Bun's claimed 3x speedup over Node.js disappears in real-world workloads, examining methodology, compatibility gaps, and migration costs.

Fitting 120B Parameters on One B200 Is Not the Same as Serving Them
KT's claim that a 120B-parameter Mi:dm K 3.0 Pro runs on a single Nvidia B200 conflates weight fitting with production serving, so this walkthrough separates precision and memory math from KV-cache, context, concurrency, throughput, and cost-per-request capacity planning.

Testing a Node.js App for AWS and Azure Lock-In While EU Cloud Rules Are Still Pending
A hands-on Node.js walkthrough that measures practical AWS and Azure lock-in across IAM, managed services, egress, and SDK coupling, while separating confirmed EU gatekeeper obligations from merely reported plans.
Loading comments…