Inferensys

Glossary

Throughput (Frames per Second)

Throughput, measured in frames or inferences per second (FPS/IPS), is the rate at which a machine learning system can process and complete inference tasks over a sustained period.
Product manager reviewing autonomous task execution dashboard on laptop, completed tasks visible, casual work session.
TINYML BENCHMARKING METRIC

What is Throughput (Frames per Second)?

Throughput, measured in frames per second (FPS) or inferences per second (IPS), is the primary metric for evaluating the sustained processing rate of a machine learning system, especially critical for real-time applications on resource-constrained hardware.

Throughput (FPS/IPS) quantifies the rate at which a system can process and complete inference tasks over a sustained period, representing its maximum sustainable operational capacity. In TinyML and embedded systems, it is a critical Key Performance Indicator (KPI) that directly impacts real-time responsiveness and system scalability. High throughput is essential for applications like continuous audio event detection or real-time computer vision on microcontrollers, where the system must keep pace with incoming sensor data streams without creating a backlog.

Measuring throughput involves executing a model with a continuous stream of input data and calculating the average number of inferences completed per second after an initial warm-up period. It is fundamentally constrained by the system's inference latency, available memory bandwidth, and hardware parallelism. Engineers analyze the throughput-latency trade-off, often using techniques like batch processing to amortize overhead and maximize frames per second, though this must be balanced against increased peak memory usage and potential impacts on tail latency for real-time guarantees.

TINYML BENCHMARKING

Key Characteristics of Throughput

Throughput, measured in frames or inferences per second (FPS/IPS), quantifies the sustained processing rate of a system. In TinyML, it is a critical metric that must be balanced against severe constraints like latency, memory, and energy.

01

Sustained vs. Peak Rate

Throughput measures the sustained processing rate over time, not a single burst. It accounts for the entire inference pipeline, including data movement, preprocessing, and postprocessing. For microcontroller systems, this is often measured over thousands of inferences to ensure stability.

  • Peak FPS is the theoretical maximum under ideal, isolated conditions.
  • Sustained FPS is the practical, achievable rate in a real application loop, which is lower due to system overhead and resource contention.
  • A system bottlenecked by memory bandwidth may show a large gap between peak and sustained throughput.
02

Inverse Relationship with Latency

Throughput and inference latency are intrinsically linked but measure different things. For a batch size of 1, throughput is approximately the inverse of latency (FPS ≈ 1 / latency in seconds).

  • High latency directly caps maximum throughput.
  • Techniques like pipelining or continuous batching can improve throughput without reducing single-inference latency by overlapping computation and data transfer.
  • In real-time systems, a target throughput requirement directly defines the maximum permissible latency for each inference.
03

Batch Processing Impact

Processing inputs in batches is a primary method for increasing throughput on capable hardware by amortizing fixed overheads across multiple samples.

  • Larger batches improve hardware utilization (e.g., of NPU vector units) and reduce per-inference cost.
  • However, batching increases peak memory usage (for storing all batched activations) and tail latency (as the first result must wait for the entire batch).
  • On extreme edge devices, batch size is often 1 due to severe SRAM limitations, making throughput optimization reliant on kernel and memory layout efficiency.
04

Hardware-Dependent Saturation

Throughput scales with available hardware resources until it hits a saturation point determined by the system's bottleneck.

  • Compute-Bound Systems: Throughput increases with higher clock speed or more parallel units until the memory subsystem cannot feed data fast enough.
  • Memory-Bound Systems: Throughput is limited by the bandwidth to external flash (for weights) or SRAM (for activations). Optimization focuses on data reuse and cache locality.
  • The Roofline Model is used to visualize this relationship between operational intensity and attainable throughput.
05

Power and Thermal Constraints

For battery-operated devices, throughput is not an independent metric but is governed by a power budget.

  • Higher throughput typically requires higher dynamic power consumption.
  • Thermal throttling can cause throughput to drop over time as the device heats up.
  • The key efficiency metric is inferences per joule, which combines throughput and energy use. An optimized system maximizes throughput within a strict power envelope, often by lowering voltage and clock frequency.
06

Measurement and Benchmarking

Accurate throughput measurement requires careful methodology to be meaningful for comparison.

  • Use a golden dataset representative of real inputs.
  • Measure over a long duration (e.g., 10,000 inferences) to account for cache warm-up and OS scheduling jitter.
  • Report both average FPS and variance (or tail latency P99).
  • Standardized benchmarks like TinyMLPerf provide controlled procedures to measure sustained throughput across different platforms, ensuring fair comparison.
PERFORMANCE METRICS

Throughput vs. Inference Latency: A Critical Distinction

A comparison of two fundamental but distinct performance metrics for TinyML systems, highlighting their definitions, measurement, and implications for system design.

Feature / CharacteristicThroughput (FPS/IPS)Inference Latency

Primary Definition

The sustained rate of completed inferences per second.

The time delay for a single inference from input to output.

Typical Unit

Inferences per second (IPS) or Frames per second (FPS)

Milliseconds (ms) or microseconds (µs)

Measurement Focus

Bulk processing capacity over a period.

Responsiveness of an individual task.

Key System Limiter

Often constrained by average resource utilization and pipeline efficiency.

Often constrained by the slowest sequential operation (critical path).

Impact of Batching

✅ Significantly increases throughput by amortizing overhead.

❌ Typically increases latency for the first item in the batch.

Optimization Goal

Maximize completed work per unit time and energy.

Minimize time-to-result for a single input.

Relevant Percentile

Average or median rate over a sustained window.

Tail latency (P95, P99) for real-time guarantees.

Primary Use Case

High-volume sensor data processing (e.g., continuous audio analysis).

Real-time control systems and immediate user feedback (e.g., wake-word detection).

Relationship

Throughput ≈ (Batch Size) / (Latency for the batch)

Latency sets the upper bound for throughput when batch size = 1.

PERFORMANCE ANALYSIS

What Factors Affect Throughput in TinyML?

Throughput, measured in inferences per second (IPS) or frames per second (FPS), is the sustained rate at which a TinyML system processes data. Achieving high throughput on microcontrollers requires navigating a complex interplay of hardware capabilities, model architecture, and software efficiency.

Throughput in TinyML is primarily constrained by the computational bottleneck—the slowest component in the inference pipeline. A system is compute-bound when limited by the processor's ability to perform arithmetic, often dictated by the MACC count of the model and the CPU/NPU clock speed. Conversely, a system is memory-bound when limited by the speed of accessing model weights and activations from SRAM or flash, a critical issue given microcontrollers' limited memory bandwidth. The roofline model helps visualize this fundamental trade-off.

Secondary factors include software overhead from the inference runtime and data movement for sensor I/O. Model architecture choices, like layer depth and operator type, directly define the workload. Hardware utilization of dedicated accelerators and memory hierarchy efficiency (cache usage) are also key. Ultimately, optimizing throughput involves balancing these against other constraints like accuracy-latency trade-offs, peak memory usage, and energy per inference to find a system-optimal Pareto frontier.

TINYML BENCHMARKING

Frequently Asked Questions

Essential questions and answers about throughput, a critical performance metric for measuring the sustained inference speed of machine learning models on resource-constrained devices.

Throughput, in the context of TinyML, is the sustained rate at which a microcontroller-based system can process and complete inference tasks, typically measured in frames per second (FPS) or inferences per second (IPS). It is distinct from latency, which measures the time for a single inference. Throughput is measured by running the model on the target hardware with a continuous stream of input data (often from a golden dataset) and calculating the average number of inferences completed per second over a sufficiently long period to account for system warm-up and any non-deterministic execution effects. High throughput is essential for applications like continuous audio event detection or real-time sensor fusion.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.