

< div> (0.5s) + attendance check-in time (3s)=8.5s (take 90% line)
< div> (0.5s) + attendance check-in time (3s)=8.5s (take 90% line)
One: Load test-calculate the maximum concurrency
In the process of performance testing, we should first design test scenarios. Simulate real business scenarios, and then design test scripts for these scenarios. In order to expose performance problems, try to simulate the possible existence of the tested object as much as possible.
Test scenarios in the bottleneck
Using a locally deployed project, we can simulate attendance clocking business.
< div> (0.5s) + attendance check-in time (3s)=8.5s (take 90% line)
Business process:
Check in home page–click to log in–jump item–open attendance page–check in attendance
Performance requirement index:
The daily attendance expected by the business is 400/min, which is 6.6/s
< div> BC: Business volume, in this case BC=400
Calculate the number of threads that need to be loaded:
Thread = BC/(60/t) = BC*(t/60)
t: the time consumed by a single user’s single business, try to simulate the real behavior of the user as much as possible
Time consumption time = open homepage (0.5s) + thinking time (3s) + input user name and password (1.5s) + homepage response time
(0.5s) + attendance check-in time (3s)=8.5s (Take 90% of the line)
BC: Business volume, in this case BC=400
Single business consumes 8.5s
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2673 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC