当前位置:网站首页>[performance test] 3 How to calculate the number of concurrent users
[performance test] 3 How to calculate the number of concurrent users
2022-06-24 05:30:00 【Try something new for a long time】
What is concurrency
Look at the picture above , If we arrive at the system strictly according to logic , The absolute number of concurrent users is 4; But if it is used to describe 1s Number of concurrent users in , It is 16
however , In fact, the allocation of users should be as follows
So you should only describe concurrency , There is no need for absolute or relative , So it is recommended to use TPS To host the concept of concurrency , Concurrency is 16PTS, Namely 1s The internal system handles 16 One transaction .
Number of online users / How to calculate the number of concurrent users
Pictured above , All in all 32 Systems entered the system , But the green user doesn't do anything , So the number of online users is 32, The number of concurrent users is 16, The concurrency is 50%
however , The system is usually as follows ,
According to this cached service , The number of online users depends on the capacity of the cache service , The maximum number of users on the way plus timeout .
Here's the picture , Explain the relationship between the number of online users and the number of concurrent users and the concurrent threads of the press
- If there is 10000 Number of online users , The concurrency is 1, Then the number of concurrent users is 100
- If each thread's TPS yes 20, The average response time is 50ms, Then the press only needs to be started 5 Threads ok 了
- about server Come on , What it deals with is 100TPS, The average response time is 50ms, The calculation for the 1000ms/20TPS
- If server There are also two threads on the end , So a thread TPS It is 50
- among , Conversion from the number of concurrent users to the number of concurrent threads of the press , It's actually the first step in benchmarking
Sum up :TPS The calculation formula of is
TPS = 1000ms/(RT)* Number of press threads
边栏推荐
- The personal information protection law was passed today. What problems should enterprises pay attention to?
- Deleting a data table in a command prompt window
- How unity runs code every few frames
- Wang Wei, senior architect of coding Devops, was selected as the first batch of tutors in Mulan open source community
- Creating a database using mysqladmin
- "Adobe international certified" graphic designer! How to break through the creative barrier and gain both fame and wealth?
- Pylin tool usage
- PHP ksort() function
- How can the website be broken by CC attack?
- Tencent cloud + community video [technology star push official] FAQ
猜你喜欢

How should we learn cloud native in 2022?
Easy to understand JDBC tutorial - absolutely suitable for zero Foundation
What cloud native knowledge should programmers master?

Intensive learning and application of "glory of the king" to complete the application of 7 real worlds other than human players
Learning routes and materials for cloud native O & M engineers

How does win10 turn off f1~f12 shortcut keys?

Answer questions! This article explains the automated testing framework in software testing from beginning to end
随机推荐
Distributed background task load balancing
What are the stages from tradition to Tencent cloud
What is the relationship between IP address and domain name? How to select a domain name?
When we talk about zero trust, what are we talking about?
Build your unique online image
Open source and SaaS, how to choose software?
How to apply for a domain name for free? What is the importance of domain names?
How to register a company domain name how to build a website with a domain name
Youtech sharing | the application of Tencent Youtu multimodal graphic content identification and positioning in content security
What is domain name filing? What is the role of domain name filing?
How do users purchase domain names? What should I pay attention to when buying a domain name?
Threat discovery under automated data analysis
How Clickhouse queries imported data within a specified time period
[jest] summary of the use of automated test jest
What is a domain name server? What are the types of domain name servers?
Performance comparison of JS loop traversal methods: for/while/for in/for/map/foreach/every
Talk about my working experience in Tencent and byte
What is the function of DNS domain name server? What is called top-level domain name
"Adobe international certified" graphic designer! How to break through the creative barrier and gain both fame and wealth?
What is a top-level domain name? Is it expensive to register a domain name