Inference Performance Engineering and Benchmarking
Rigorous, Repeatable Methodology for Measuring Throughput, Latency, Utilisation and Token Cost
01 Abstract
Architectural claims are only credible when verified through controlled, repeatable experiments. Apolynux defines a rigorous benchmarking framework designed to evaluate conventional inference baselines against each incremental layer of the proposed InferPlane stack — reporting complete statistical distributions, full hardware/software disclosures, energy consumption, and transparent cost-per-million-token accounting. Estimated projections are never published as measured results.
02 Problem Statement
AI infrastructure comparisons frequently suffer from mismatched quantisations, cherry-picked best-run numbers, omitted memory or power costs, and undisclosed prompt/output ratios. Without disciplined controls, engineers cannot distinguish genuine systems gains from measurement artifacts.
03 Background & Foundations
Standardised systems benchmarking (inspired by MLPerf Inference and peer-reviewed systems artifact evaluation) mandates controlled inputs, repeated trials, percentile reporting (p50/p95/p99), and open reproducibility scripts so third parties can independently verify every claim.
04 Existing Architectural Limitations
- Single-run peak throughput figures conceal severe tail-latency (p99) degradation under concurrency.
- Comparing different quantisations or model weights invalidates architectural conclusions.
- Ignoring electricity, cooling, storage, and idle hardware amortisation distorts true token economics.
05 Proposed Apolynx Architecture
A seven-stage progressive ablation harness holds model weights, quantisation, prompts, and hardware constant while enabling one architectural layer at a time.
Controlled Workload Generator
Replays identical prompt distributions, output lengths, batch sizes, and concurrency arrival rates.
Seven-Stage Ablation Matrix
1) Baseline -> 2) Memory Tuning -> 3) Lockless Scheduling -> 4) InferPlane Ops -> 5) Predictive MoE -> 6) Heterogeneous -> 7) Distributed.
Full-Stack Telemetry Collector
Captures TTFT, TPOT, tokens/sec, CPU/NPU/GPU utilisation, memory bandwidth, network I/O, and wall-plug power.
Open Artifact Package
Publishes exact hardware specs, OS/compiler versions, scripts, raw CSV measurements, and statistical summaries.
06 Technical Design
Primary metrics include Time to First Token (TTFT), Time Per Output Token (TPOT), sustained Tokens Per Second, and Cost Per Million Generated Tokens (accounting for hardware amortisation, electricity, cooling, storage, network, hosting, and maintenance). Prompt tokens, output tokens, model quality, and SLO latency bounds are reported separately to prevent misleading aggregates.
| Config | Enabled Architectural Layer | Primary Isolation Question |
|---|---|---|
| C1 | Baseline Inference Engine | Reference performance, latency & cost floor |
| C2 | Baseline + Memory Tuning (Hugepages / NUMA) | Gain from OS/memory locality alone |
| C3 | + Lockless Scheduling Queues | Reduction in synchronisation & tail jitter |
| C4 | + InferPlane Operation Scheduling | Impact of operation-oriented dispatch |
| C5 | + Predictive MoE Expert Streaming | RAM savings vs. cache-miss latency trade-off |
| C6 | + Heterogeneous Execution (CPU/NPU/GPU) | Utilisation & cost gain from target matching |
| C7 | + Distributed RDMA Fabric | Multi-node scaling efficiency vs. network cost |
07 Execution Workflow
- 1. Lock Environment: Pin exact model checksums, quantisation parameters, kernel version, and hardware clocks.
- 2. Warmup & Repeat: Execute deterministic warmup passes followed by statistically sufficient repeated trials.
- 3. Collect Raw Traces: Record per-request TTFT, per-token TPOT, hardware counters, and power telemetry.
- 4. Statistical Analysis: Compute median, mean, p95, p99, and confidence intervals — never best-of-N cherry-picks.
- 5. Transparent Publication: Release scripts, raw logs, and full cost-model assumptions alongside findings.
08 Algorithms, Interfaces & Specification
PRIMARY LATENCY & THROUGHPUT METRICS:
TTFT = t(first_output_token) - t(request_received)
TPOT = (t(final_token) - t(first_output_token)) / (N_output_tokens - 1)
TPS = total_generated_tokens / elapsed_seconds
TRANSPARENT TOKEN ECONOMICS:
Total_Operational_Cost = Hardware_Amortisation + Electricity + Cooling
+ Storage + Network + Hosting + Maintenance
Cost_Per_Million_Tokens = (Total_Operational_Cost / Generated_Tokens) * 1,000,000
INTEGRITY RULE:
Report prompt tokens, output tokens, quality parity, and latency SLOs separately.
Never publish estimated projections as measured performance.
09 Implementation Considerations
- Verify numerical/perplexity parity across every optimisation so speedups never hide silent quality degradation.
- Isolate power measurements (RAPL + external PDU where available) across both idle and active load.
- Archive exact compiler flags, library commits, and BIOS power profiles with every benchmark run.
10 Performance Evaluation Methodology
Meta-validation of harness repeatability (measuring run-to-run variance under identical C1 baselines) before certifying any comparative C2–C7 results.
11 Limitations & Scope Boundaries
- Architecture Design stage: benchmark harness is part of Phase 1 Foundation; no comparative InferPlane speedup numbers are claimed prior to execution.
- Real-world TCO varies regionally with electricity tariffs, hardware procurement prices, and utilisation duty cycles.
12 Open Research Questions & Challenges
- How can enterprise domain-specific workloads (banking, healthcare, RAG) be captured in reproducible public prompt suites without exposing confidential data?
- What composite efficiency metric best balances interactive latency SLOs with total token cost?
13 Future Directions
- Public release of the Apolynux benchmark harness and raw Phase 1–2 measurement datasets.
- Automated CI regression tracking for latency distributions and memory footprint.
14 Primary Technical References
- Reddi et al. (ISCA 2020) — MLPerf Inference Benchmark — Standardised latency-bounded AI evaluation.
- Hoefler & Belli (SC 2015) — Scientific Benchmarking of Parallel Computing Systems — Statistical rigour and reporting standards.
- Linux perf & Intel RAPL Documentation — Hardware performance counters and processor energy measurement interfaces.
Research Status: Architecture Design • Scientific Integrity Disclosure
This research programme explicitly separates established computer science principles, existing open-source technologies, Apolynux architectural proposals, experimental implementations, and independently validated results. Apolynux does not claim to have invented OpenFlow, lock-free algorithms, RDMA, hugepages, or Mixture-of-Experts. Our research contribution is the proposed integration of these disciplines into a unified programmable inference architecture, evaluated strictly through repeatable empirical measurement.