Bridge · Article 10

Testing & Benchmarking AI Inference Pipelines

Starts with a question network testing already knows to ask first: what does the traffic actually look like — and what shape does it take?

Everything in Articles 1-9 describes what to optimize. This is about how to prove it worked — and proving it starts with recognizing that "send some prompts and measure throughput" is the LLM equivalent of testing a network with one traffic pattern and calling it done. Prompts aren't uniform transactions. They're dynamic workload profiles, and the shape of that workload — what Keysight calls the shape of prompts — is what actually determines how the inference stack behaves.

The geometry of prompt shapes

A prompt can be described as a vector across three dominant axes: Compute/Context, Memory, and Latency Sensitivity. What looks like "a simple request" at the application layer is a distinct resource-distribution profile at the infrastructure layer — and that profile is what actually determines GPU utilization, KV-cache growth, network fabric pressure, and where TTFT/TPOT/TTLT land.

Compute / Context Memory Latency Sensitivity Prefill-dominant Decode-dominant Memory-heavy Three example prompt geometries
Every prompt is a vector across three axes. A “simple request” at the application layer is a distinct resource-distribution profile at the infrastructure layer.
  • Prefill-dominant (compute/context-heavy) — large context ingestion, long documents, RAG analysis, legal or multi-document review. The GPU spikes hard on ingest, the KV cache expands rapidly, and TTFT becomes a function of context size and parallelization efficiency. Stack concurrency on top and the spike compounds across sessions, quickly exposing GPU-to-memory imbalances.
  • Decode-dominant (latency-sensitive) — chat, streaming assistants, code generation: moderate prefill, extended decode. TPOT dominates the user's actual experience and TTLT grows with output length; the system isn't compute-starved, but users still feel degradation if token cadence gets uneven.
  • Memory-heavy (KV-cache-driven) — long-running conversations and agent chains shift pressure onto memory instead of compute. KV-cache residency becomes the gating resource, and a GPU can look underutilized while memory is actually saturated.

Two more wrinkles worth knowing: concurrency and burst reshape geometry in real time — a prompt that looks balanced in isolation can distort badly under load, since short prompts under burst become latency-heavy purely from queuing. And RAG / multi-phase prompts don't sit still on the chart at all — retrieval latency, a prefill compute surge, and a decode streaming phase happen in sequence, so the shape morphs across the request's lifecycle rather than holding one geometry throughout.

Why this demands a new benchmarking approach

Real inference traffic is heterogeneous — compute-heavy prefill bursts, memory-intensive long-context sessions, latency-critical interactive exchanges, and multi-phase RAG workflows, all mixed together. Benchmarks built around peak throughput or average latency collapse that multidimensional variability into one number and lose the thing that actually matters: which resource breaks first, under which shape of traffic.

Network lens

This is the same lesson as testing a switch with a single traffic profile and calling the box validated. You wouldn't ship a network device without mixed traffic classes, burst patterns, and breaking-point analysis. Inference benchmarking needs the same discipline, aimed at prompt geometry instead of packet size distributions.

What a shape-aware test plan asks

The proof loop closes when you point familiar network-test methods at the three axes above — not at a single tokens/sec headline:

Throughput(tokens/sec) Latency percentiles(p50/p95/p99) Soak / longevitytesting Concurrencyramp-hold-drain Same methodology you already run for network gear — pointed at an inference stack instead
Map each method onto prompt geometry: which shape breaks first, under which percentile and concurrency.
  • Mixed shapes, not one prompt — run prefill-dominant, decode-dominant, and memory-heavy profiles (plus a RAG multi-phase mix) the way you mix traffic classes on a switch.
  • Percentiles from Article 8 — watch TTFT for prefill-heavy shapes, TPOT variance for decode-heavy ones, and cache % / queue depth as leading indicators before the user-visible cliff.
  • Soak and ramp-hold-drain — fragmentation and cache-eviction bugs often appear only after hours; concurrency ramps show when geometry distorts under burst.
Takeaway

Articles 1–9 taught what to optimize. Proof is not “tokens/sec went up.” It is: under a production-like mix of prompt geometries, the right resource breaks last — and the Article 8 metrics tell you which one almost broke first.

Appendix — Tool landscape & full-stack validation

As AI shifts from training to production, teams need proof that infrastructure — GPUs, network fabric, memory, and software — can sustain real user traffic at scale. Here is how major tools compare, and where Keysight's KAI Inference Builder extends the picture.

How Keysight's KAI Inference Builder operationalizes geometry

A useful reference for what “benchmarking by geometry” looks like in practice, in three layers:

  • Research-driven prompt architectures. Instead of generic text samples, prompts are engineered per industry vertical and use case — contract review and case research for law firms, multi-document financial modeling for quant finance, patient-record summarization and clinical reasoning chains for healthcare, literature synthesis for academia — each with a characterized prompt geometry that mirrors real production traffic instead of a lab simplification.
  • Concurrency, scaling, and breaking-point analysis. These researched shapes get amplified across extreme concurrency to find inflection points: when does TTFT start degrading, when does TPOT variability show up, at what concurrency does KV-cache pressure force recompute, when does fabric congestion start influencing decode cadence — while isolating model runtime, orchestration, GPU compute, memory bandwidth, storage, and network fabric individually instead of just exposing one aggregate failure.
  • Single pane of glass. Prompt-side metrics (shape, concurrency, burst pattern, TTFT/TPOT, token rate) and stack-side telemetry (GPU utilization, memory consumption, cache growth, queue latency, network pressure) are time-aligned, so a prefill spike can be traced directly to GPU saturation, decode variability to memory bandwidth, and tail latency to queue depth or concurrency amplification.
Source

Grounded in Amritam Putatunda, "The Shape of Prompts: Exploring Their Effect on Inference Infrastructure", Keysight Blogs, March 17, 2026. Read in full for the RAG multi-phase breakdown and the complete KAI Inference Builder methodology — this appendix summarizes it for portal continuity.

ToolSourceWhat it measuresBest for
MLPerf InferenceMLCommons (industry consortium)Standardized inference benchmarks across vision, NLP, LLM, and recommendation models on submitted hardware/software stacks.Vendor-neutral hardware comparisons, datacenter & edge
AIPerfNVIDIA — successor to GenAI-PerfTime-to-first-token, inter-token latency, throughput, goodput, plus adaptive parameter sweeps.Comprehensive LLM serving benchmarks, NVIDIA-centric stacks
GenAI-PerfNVIDIA — being phased outTTFT, inter-token latency, and token/request throughput for OpenAI-API-compatible inference servers.Legacy LLM inference profiling (migrate to AIPerf)
LLMPerfAnyscale / Ray (open source)Token throughput and latency across LLM API providers; feeds a public leaderboard.Reproducible, provider-agnostic comparisons
AIBrixByteDance (open source)System-level benchmarking built into a vLLM-based inference control plane.Serving-infrastructure & scheduling research
Other OSS benchmarksCommunity (k6, Locust, vLLM bench, etc.)Varies — generic HTTP load generation adapted for inference endpoints.Custom or task-specific load generation
Spotlight — KAI Inference Builder (Keysight)

Where the tools above benchmark the model, KAI Inference Builder (KAI IB) benchmarks the system it runs on. It emulates real-world, industry-specific prompt behavior — finance, legal, healthcare, and more — instead of synthetic HTTP traffic, then correlates client-experience metrics with server and GPU telemetry across compute, memory, KV-cache, storage, networking (PCIe/RDMA), and security layers.

A one-arm, client-only emulation mode isolates exactly where a stack breaks first — before it becomes a production incident. KAI IB integrates with NVIDIA DSX Air for pre-deployment validation of AI data center infrastructure, not just model throughput.

Bottom line: MLPerf, AIPerf/GenAI-Perf, LLMPerf, and AIBrix answer “how fast is my model?” KAI Inference Builder answers “will my infrastructure survive production traffic?” — two questions every AI factory needs answered together.

End of the guided path

That's the full guided path — compute foundations, the request lifecycle, the mechanics of a forward pass, and the network/ops lens tying it back to home turf. Back to the 10,000-foot map to revisit any stage. Optional network deep-dives live at 7a7c if you want more wire-level detail after the map.