US 12,436,864 B2
Performance testing method and apparatus, and storage medium
Yakun Mu, Beijing (CN); and Chaoping Ji, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by Beijing Baidu Netcom Science Technology Co., Ltd., Beijing (CN)
Filed on Oct. 13, 2022, as Appl. No. 17/965,066.
Claims priority of application No. 202210157035.0 (CN), filed on Feb. 21, 2022.
Prior Publication US 2023/0267060 A1, Aug. 24, 2023
Int. Cl. G06F 11/34 (2006.01); G06F 9/48 (2006.01)
CPC G06F 11/3452 (2013.01) [G06F 9/4881 (2013.01)] 9 Claims
OG exemplary drawing
 
1. A performance testing method, comprising:
in response to determining that current first performance information of a server does not satisfy a predetermined condition, updating current first concurrency according to the first performance information to obtain second concurrency;
performing pressure testing on the server according to the second concurrency to obtain second performance information of the server; and
in response to determining that the first performance information satisfies the predetermined condition, performing a task allocation operation of the server according to the first concurrency,
wherein updating the current first concurrency according to the first performance information to obtain the second concurrency comprises:
updating a current step according to a first difference between the first performance information and an upper requirement limit and adjusting the first concurrency according to the updated current step to obtain the second concurrency;
wherein updating the current step according to the first difference between the first performance information and the upper requirement limit and adjusting the first concurrency according to the updated current step to obtain the second concurrency comprises:
in a case where the first performance information is less than the upper requirement limit, detecting a growth relationship between performance information and concurrency;
in a case where the growth relationship is a linear relationship, computing the first difference between the first performance information and the upper requirement limit;
determining a growth coefficient of the current step according to the first difference and updating the current step; and
computing a sum of the first concurrency and the updated current step to obtain the second concurrency,
wherein the method further comprises:
in a case where the growth relationship is a non-linear relationship, reducing the current step, and
computing a sum of the first concurrency and the reduced current step to obtain the second concurrency.