Queries Per Second (QPS) is a throughput metric measuring the number of complete inference requests a system can process in one second, regardless of individual request complexity or output length. It quantifies the raw processing capacity of a model-serving endpoint or an entire inference cluster. QPS is a critical Key Performance Indicator (KPI) for infrastructure scaling and cost analysis, as it directly relates to the economic efficiency of serving a machine learning model. It is often analyzed in conjunction with latency metrics to understand the throughput-latency trade-off of a system.
Glossary
Queries Per Second (QPS)

What is Queries Per Second (QPS)?
Queries Per Second is a fundamental throughput metric for measuring the raw request-processing capacity of an inference system.
In performance benchmarking, QPS is measured under a defined Service Level Objective (SLO), such as a maximum acceptable latency, to ensure metrics reflect usable performance. It is distinct from Tokens Per Second (TPS), which measures token-generation speed for language models. System QPS is constrained by hardware limits (e.g., GPU FLOPs, memory bandwidth) and software efficiency, with techniques like continuous batching and KV cache management employed to maximize it. Understanding a system's saturation point, where QPS plateaus and latency spikes, is essential for production capacity planning.
Key Characteristics of QPS
Queries Per Second (QPS) is a fundamental throughput metric for measuring the raw request-processing capacity of an inference system. Understanding its characteristics is essential for capacity planning, cost analysis, and performance benchmarking.
Definition and Core Measurement
Queries Per Second (QPS) measures the number of complete inference requests a system can process in one second. It is a system-level throughput metric that aggregates the completion of all requests, regardless of their individual complexity or output length.
- Unit of Measurement: Requests/Second.
- Scope: Measures completed end-to-end requests, from receipt of input to delivery of final output.
- Contrast with Latency: While latency (e.g., P99) measures the time for a single request, QPS measures the volume the system can handle collectively. They exist in a trade-off relationship, visualized on a throughput-latency curve.
Relationship with Other Metrics
QPS does not exist in isolation; it must be interpreted alongside other key performance indicators (KPIs) to provide a complete picture.
- Tokens Per Second (TPS): For language models, TPS measures token generation rate. A system can have high QPS for short requests but lower TPS if requests are long. QPS * Avg Output Tokens ≈ TPS.
- Latency Percentiles (P50, P99): As QPS increases toward the system's saturation point, latency typically degrades, especially at the tail (P99). A target QPS must be evaluated against latency Service Level Objectives (SLOs).
- Hardware Utilization: High QPS with low GPU/CPU utilization indicates inefficiency, while QPS plateauing at 100% utilization identifies a compute-bound or memory-bound bottleneck.
Factors Influencing QPS
A system's maximum achievable QPS is determined by a confluence of hardware, software, and workload factors.
- Model Architecture & Size: Larger models require more FLOPs per token, reducing potential QPS.
- Inference Optimization: Techniques like continuous batching, KV cache management, and model quantization directly increase QPS by improving hardware utilization and reducing compute per request.
- Hardware (GPU/CPU): Peak FLOPs and memory bandwidth define the theoretical QPS ceiling.
- Request Profile: Batch size, input/output sequence lengths, and the variance in these (load distribution) are primary determinants. Homogeneous, short requests yield higher QPS.
- System Overhead: Network I/O, pre/post-processing, and orchestration framework latency subtract from available compute time, capping effective QPS.
Benchmarking and Load Testing
Measuring QPS accurately requires controlled, reproducible benchmarking that reflects production scenarios.
- Synthetic vs. Real-World Workloads: Benchmarks use synthetic workloads for consistency, but final validation requires real-world workload patterns.
- Establishing a Baseline: Measure QPS under a target latency SLO (e.g., QPS@P99<200ms) to create a performance baseline.
- Load Testing: Gradually increase request rate to plot the throughput-latency curve and identify the saturation point where latency spikes.
- Industry Standards: Benchmarks like MLPerf Inference provide standardized models and datasets for fair QPS comparison across systems.
- Concurrent Requests: QPS is achieved by processing concurrent requests. Testing must simulate appropriate concurrency levels to expose resource contention.
QPS in Cost and Capacity Planning
For CTOs and engineering managers, QPS is a direct input into infrastructure cost models and capacity plans.
- Cost per Query: Total inference cost divided by total queries over a period. Optimizing to achieve higher QPS on the same hardware reduces cost per query.
- Capacity Forecasting: Required QPS targets (from product forecasts) dictate the number of instances or GPUs needed. Planning must account for peak load, not just average.
- Scalability Analysis: QPS should scale near-linearly with added replicas (horizontal scaling) until bottlenecked by shared resources like load balancers or data planes.
- Budgeting: QPS projections translate directly to cloud compute or hardware procurement budgets under inference cost optimization initiatives.
Common Pitfalls and Misconceptions
Misinterpreting QPS can lead to poor architectural decisions and unmet performance expectations.
- Ignoring Tail Latency: Maximizing QPS without regard for P99 latency leads to poor user experience during traffic spikes.
- Overlooking Warm-Up: Reporting QPS during steady-state performance without accounting for cold start latency gives an incomplete view of production readiness.
- Homogeneous Assumption: A QPS number is only valid for a specific request profile. Changing average input length by 20% can change QPS by 40%.
- Not a Quality Metric: High QPS does not indicate accurate or correct model outputs. It is purely a measure of system throughput.
- The "Theoretical Max" Fallacy: Peak hardware FLOPs rarely translate directly to achievable QPS due to software overheads, memory bottlenecks, and operator inefficiency.
How QPS is Measured and Interpreted
Queries Per Second (QPS) is the primary throughput metric for inference systems, quantifying the number of complete requests processed in one second. Its measurement and interpretation are fundamental to capacity planning and performance optimization.
Queries Per Second (QPS) is measured by submitting a sustained load of requests to a system and dividing the total completed requests by the test duration. A complete request is one where the final output token is delivered. The resulting QPS value is a system-level metric that inherently reflects the complex interplay of batch size, request concurrency, hardware utilization, and model architecture. It is the inverse of the average total request latency when the system is operating at a steady state.
Interpreting QPS requires analyzing it alongside latency metrics, particularly tail latency (P99), as the two form a fundamental trade-off. A reported QPS figure is meaningless without the corresponding load and latency profile. The throughput-latency curve illustrates this relationship: as offered load increases, QPS rises until reaching the system's saturation point, after which latency spikes dramatically while QPS plateaus. Effective benchmarking isolates the QPS achieved while meeting a defined Service Level Objective (SLO) for latency.
QPS vs. Related Performance Metrics
A comparison of key performance indicators used to measure and benchmark inference systems, highlighting what each metric quantifies and its primary use case.
| Metric | Definition | Primary Use | Key Relationship | Typical Unit |
|---|---|---|---|---|
Queries Per Second (QPS) | The number of complete inference requests a system can process in one second. | Measure overall system throughput capacity. | Inversely related to average request latency under load. | requests/sec |
Tokens Per Second (TPS) | The total number of output tokens generated across all requests in one second. | Benchmark language model generation speed. | QPS * Average Output Tokens per Request ≈ TPS. | tokens/sec |
Latency (P50/P90) | The time delay for a single request, measured at specific percentiles (median, 90th). | Measure user-perceived responsiveness for typical requests. | As QPS increases towards saturation, latency typically rises. | milliseconds (ms) |
Tail Latency (P99) | The latency experienced by the slowest 1% of requests. | Identify worst-case performance and system stability issues. | High P99 often indicates resource contention or bottlenecks. | milliseconds (ms) |
Time to First Token (TTFT) | The delay from request submission to the first output token in a stream. | Measure perceived startup time for streaming responses. | Largely independent of output length; added to total latency. | milliseconds (ms) |
Time per Output Token (TPOT) | The average time to generate each subsequent token after the first. | Measure incremental generation cost in autoregressive models. | Total Latency ≈ TTFT + (Output Tokens * TPOT). | milliseconds/token (ms/tok) |
Hardware Utilization (GPU) | The percentage of available computational resources actively used. | Identify under-utilization or compute-bound bottlenecks. | High QPS with low utilization may indicate a memory-bound system. | percent (%) |
Concurrent Requests | The number of requests being processed simultaneously by the system. | Configure system capacity and manage resource sharing. | Optimal concurrency balances high QPS with acceptable latency. | count |
Frequently Asked Questions
Queries Per Second (QPS) is a fundamental throughput metric for measuring the raw request-processing capacity of an inference system. These questions address its calculation, interpretation, and role in performance benchmarking.
Queries Per Second (QPS) is a throughput metric that measures the number of complete inference requests a system can process in one second. It is calculated by dividing the total number of successfully completed requests by the total measurement time in seconds: QPS = Total Completed Requests / Total Time (seconds). For accurate benchmarking, this measurement is taken during steady-state performance, after initial warm-up, and typically under a sustained load that represents a target concurrent request level. It is a system-level metric that aggregates performance across all hardware components and software layers.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
QPS is a core throughput metric, but it must be analyzed alongside other key performance indicators to fully understand system behavior and user experience.
Latency
Latency is the time delay between submitting an inference request and receiving the complete response, measured in milliseconds. It is the primary metric for user-perceived responsiveness.
- Direct Trade-off with QPS: As QPS increases, latency typically rises due to resource contention and queueing.
- Types: Includes Time to First Token (TTFT) for streaming responses and end-to-end latency for complete requests.
- Critical for UX: High latency directly impacts application usability, even if QPS is high.
Time to First Token (TTFT)
Time to First Token measures the latency from request submission until the first output token is generated by an autoregressive model. It represents the initial computational overhead.
- Components: Includes prompt encoding, model computation through all layers for the first position, and network transmission.
- User Perception: Crucial for streaming interfaces, as it determines the perceived 'startup time' of a response.
- Independent of Output Length: Unlike total latency, TTFT is not directly affected by the number of tokens generated.
Tokens Per Second (TPS)
Tokens Per Second is a throughput metric specific to language models that counts the total number of output tokens generated across all requests in one second.
- Relationship to QPS:
QPS * (Average Output Tokens per Request) = TPS. A system can have high QPS with low TPS if requests are short. - Compute Cost Proxy: More accurately reflects the computational load of text generation than QPS alone, as generating 100 tokens costs far more than generating 10.
- Key for Costing: Essential for estimating inference cost, which is often token-based.
Tail Latency (P90/P99)
Tail Latency refers to the high-percentile latencies (e.g., P95, P99) in a request distribution, representing the slowest requests.
- System Health Indicator: While average latency might be good, high P99 latency indicates instability, resource contention, or garbage collection pauses affecting some users.
- Determines SLOs: Service Level Objectives are often defined around P99 latency, not averages.
- Impact on QPS: A system with poor tail latency may need to operate at a lower QPS to meet its SLOs, as queueing exacerbates tail effects.
Concurrent Requests
Concurrent Requests are multiple inference queries being processed simultaneously by a system. Managing concurrency is key to achieving high QPS.
- Parallelism vs. Queueing: Systems use techniques like continuous batching to process requests in parallel on hardware, maximizing QPS. Excess concurrency leads to queueing and increased latency.
- Resource Management: Each concurrent request consumes GPU/CPU memory and compute slices. The maximum supported concurrency is a fundamental system limit.
- Measurement: The number of requests 'in-flight' at any given moment, which directly influences achieved QPS and latency.
Throughput-Latency Curve
A Throughput-Latency Curve is a graph plotting system throughput (QPS) against request latency as load increases. It is the essential model for understanding performance limits.
- Three Key Regions:
- Latency-Stable: Low load, latency is constant as QPS increases.
- Knee of the Curve: Latency begins to increase noticeably with added QPS.
- Saturation: System reaches maximum QPS; latency increases dramatically with any additional load.
- Operational Point: Defines the target QPS for a given latency SLO. Operating near the 'knee' maximizes utilization without violating SLOs.
- Benchmarking Tool: Generated via load testing to determine system capacity and optimal configuration.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us