Operations 8 min read

What’s the Real Difference Between QPS and TPS? A Deep Dive into System Throughput

This article explains QPS and TPS concepts, their differences, how they relate to concurrency, throughput, and key performance metrics such as PV, UV, DAU, and provides practical guidance for evaluating and testing system capacity.

21CTO
21CTO
21CTO
What’s the Real Difference Between QPS and TPS? A Deep Dive into System Throughput

QPS

QPS (Queries Per Second) measures how many queries a server can handle each second, reflecting the maximum throughput of a specific query server.

TPS

TPS (Transactions Per Second) counts the number of transactions processed per second; a transaction spans from the client request to the server’s response.

Difference Between QPS and TPS

TPS counts complete transactions, including user request, internal server processing, and server response. QPS counts every individual request to the server, which may be multiple per transaction.

For example, a page visit may generate one transaction (TPS) but three server requests (QPS). Similarly, a fast eater can finish 10 buns per second (TPS) while a slower eater handles only 1 bun per second (QPS); both are different rates.

Concurrency

Concurrency (or concurrency level) indicates the number of requests a system can handle simultaneously, reflecting load capacity.

Throughput

Throughput is the number of requests processed by the system per unit time; TPS and QPS are common quantitative metrics for throughput.

Key Parameters

QPS/TPS: number of requests or transactions per second.

Concurrency: number of simultaneous requests/transactions.

Response Time: typically the average response time.

Relationship: QPS (or TPS) = Concurrency / Average Response Time.

When either QPS or concurrency reaches its limit, overall throughput stops increasing and may even decline due to overload, context switching, and resource contention.

PV (Page View)

PV counts each page load or refresh as a view, measurable from daily access logs.

UV (Unique Visitor)

UV counts distinct users visiting a site within a day, derived by deduplicating logs.

DAU (Daily Active Users)

DAU measures the number of unique users who interact with a product in a single day.

MAU (Monthly Active Users)

MAU counts distinct users active over a month.

System Throughput Evaluation

Designing a system requires considering CPU usage, I/O, external service latency, and estimating performance limits.

Beyond QPS and concurrency, daily PV is another dimension for capacity planning.

By analyzing access logs, one can infer daily traffic patterns and estimate maximum daily throughput.

Typical Technical Approaches

1. Identify the system’s peak TPS and daily PV, which usually have a stable relationship (excluding holidays or seasonal effects).

2. Use stress testing or experience to determine peak TPS, then calculate the maximum daily throughput based on the TPS‑PV relationship.

Fundamental Concepts and Formulas for Software Performance Testing

Performance testing focuses on response time, resource utilization, scalability, maximum concurrent users, potential bottlenecks, hardware upgrades, and 24/7 availability.

From a developer’s perspective, considerations include architecture design, database design, code efficiency, memory usage, thread synchronization, and resource contention.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

concurrencyPerformance TestingThroughputQPSTPS
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.