WO2024041018A1 - Method and apparatus for adjusting response duration of stress test system, and device and medium - Google Patents

Method and apparatus for adjusting response duration of stress test system, and device and medium Download PDF

Info

Publication number
WO2024041018A1
WO2024041018A1 PCT/CN2023/091088 CN2023091088W WO2024041018A1 WO 2024041018 A1 WO2024041018 A1 WO 2024041018A1 CN 2023091088 W CN2023091088 W CN 2023091088W WO 2024041018 A1 WO2024041018 A1 WO 2024041018A1
Authority
WO
WIPO (PCT)
Prior art keywords
duration
consumed
response
adjustment
time
Prior art date
Application number
PCT/CN2023/091088
Other languages
French (fr)
Chinese (zh)
Inventor
王昆
Original Assignee
京东科技控股股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东科技控股股份有限公司 filed Critical 京东科技控股股份有限公司
Publication of WO2024041018A1 publication Critical patent/WO2024041018A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Definitions

  • the present disclosure relates to the field of computer technology, and more specifically, to a method, device, equipment, medium and program product for adjusting the response time of a pressure measurement system.
  • Stress testing is a testing method to determine system stability. It is usually performed outside the normal operating range of the system to examine the functional limits and hidden dangers of the system.
  • the traditional pressure testing method generally applies pressure to the simulation thread, and calculates the pressure measurement flow based on the response time of the pressure measurement system.
  • the inventor found that there are at least the following problems in related technologies: since the response time will be interfered by various factors such as system response fluctuations, network fluctuations, system degradation, switch operations, etc., the pressure measurement flow will appear The constantly fluctuating state reduces the pressure measurement accuracy.
  • the present disclosure provides a method, device, equipment, medium and program product for adjusting the response time of a pressure measurement system.
  • One aspect of the present disclosure provides a method for adjusting the response time of a pressure measurement system, including:
  • the response information of the n-1th simulated service request is obtained from the memory, where the response information includes the first response duration and adjustment information, and the adjustment information is included in the stress testing system's response to the n-1st simulated service request.
  • the first adjustment time consumed by the voltage stabilizing component and the first unconsumed waiting time of the voltage stabilizing component are used;
  • the preset response time represents the expected response time of the stress testing system for the simulated service request.
  • the preset response time is greater than n-1 times. Simulate the average response time of service requests, where n is a positive integer greater than 2;
  • the response duration of the nth simulated service request is adjusted according to the second adjustment duration.
  • determining the second time period to be consumed based on the first response time period, the preset response time length and the first time period to be consumed includes:
  • the second time period to be consumed is determined based on the response deviation time period and the first time period to be consumed.
  • determining the second adjustment duration based on the second to-be-consumed duration and the first adjustment duration includes:
  • the difference between the first adjustment time period and the second time period to be consumed is determined as the second adjustment time length
  • the second adjustment duration is determined to be zero.
  • the method for adjusting the response duration of the pressure measurement system further includes:
  • the third time period to be consumed is determined based on the second time period to be consumed and the first adjustment time period.
  • the third time period to be consumed represents the remaining time recorded in the voltage stabilizing component after the second adjustment time period is consumed by the voltage stabilizing component.
  • determining the third time period to be consumed based on the second time period to be consumed and the first adjustment time period includes:
  • the difference between the second time period to be consumed and the first adjustment time period is determined as the third time period to be consumed.
  • the method for adjusting the response duration of the pressure measurement system further includes:
  • the third to-be-consumed duration and the second adjustment duration are overwritten and written into the memory for performing the adjustment operation of the response time of the (n+1)th simulated service request.
  • the voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration, including:
  • a device for adjusting the response duration of a pressure measurement system including: an acquisition module, a first determination module, a second determination module, and an adjustment module.
  • the acquisition module is used to respond to the n-th simulated service request and obtain the response information of the n-1th simulated service request from the memory, where the response information includes The first response time and adjustment information.
  • the adjustment information includes the first adjustment time consumed by the voltage stabilizing component and the first unconsumed time to be consumed by the voltage stabilizing component during the process of the pressure measurement system responding to the n-1th simulated service request. , where n is a positive integer greater than 2.
  • the first determination module is used to determine the second to-be-consumed duration based on the first response duration, the preset response duration and the first to-be-consumed duration.
  • the preset response duration represents the expected response duration of each simulated service request.
  • the preset response duration The average response time is greater than n simulated service requests.
  • the second determination module is configured to determine the second adjustment duration based on the second to-be-consumed duration and the first adjustment duration.
  • the adjustment module is configured to use the voltage stabilizing component to adjust the response duration of the nth simulated service request according to the second adjustment duration.
  • the first determination module includes a first determination unit and a second determination unit.
  • the first determining unit is used to determine the response deviation duration of the n-1th simulated service request based on the first response duration and the preset response duration.
  • the second determination unit is configured to determine the second time period to be consumed based on the response deviation time period and the first time period to be consumed.
  • the second determination module includes a third determination unit and a fourth determination unit.
  • the third determining unit is configured to determine the difference between the first adjustment time period and the second time period to be consumed as the second adjustment time period when the second time period to be consumed is less than the first adjustment time period.
  • the fourth determination unit is configured to determine that the second adjustment duration is zero when the second to-be-consumed duration is greater than the first adjustment duration.
  • the device for adjusting the response time of the pressure measurement system further includes a third determination module for determining the third time to be consumed based on the second time to be consumed and the first adjustment time, and the third time to be consumed represents the After the voltage stabilizing component consumes the second adjustment duration, the remaining time recorded in the voltage stabilizing component is used.
  • the third determination module includes a fifth determination unit and a sixth determination unit.
  • the fifth determination unit is configured to determine that the third time period to be consumed is zero when the second time period to be consumed is less than the first adjustment time period.
  • the sixth determination unit is configured to determine the difference between the second time period to be consumed and the first adjustment time period as the third time period to be consumed when the second time period to be consumed is greater than the first adjustment time period.
  • the above-mentioned device for adjusting the response duration of the pressure measurement system further includes a storage module for overwriting and writing the third to-be-consumed duration and the second adjustment duration into the memory for performing the n+1th simulation. Adjustment of response times for service requests.
  • the adjustment module includes a recording unit, a consumption unit, a seventh determination unit and an eighth determination unit.
  • the recording unit is used to record the request start time information in response to the nth simulated service request.
  • the consumption unit is configured to use the voltage stabilizing component to consume the second adjustment duration when the response to the nth simulated service request ends.
  • the seventh determination unit is used to determine the request end time information based on the pressure test start time and the second adjustment duration.
  • the eighth determination unit is used to determine the adjusted third value based on the pressure test start time information and the pressure test end time information. The response time of n simulated service requests.
  • Another aspect of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors When, one or more processors are caused to execute the method described in the embodiment of the present disclosure.
  • Another aspect of the disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are used to implement the methods described in embodiments of the disclosure.
  • the computer program product includes computer-executable instructions. When executed, the instructions are used to implement the methods described in the embodiments of the disclosure.
  • the second to-be-awaited duration is determined.
  • the technical method is to determine the second adjustment time based on the second time to be consumed and the first adjustment time, and use the voltage stabilizing component to adjust the response time of the nth simulated service request based on the second adjustment time. Since the voltage stabilizing component is used to adjust the response time of the n-th simulated service request according to the unconsumed time in the response information of n-1 simulated service requests, the response time of each simulated service request during the stress test process converges to the preset value.
  • the response time is long, so it at least partially overcomes the technical problem of the response time fluctuation of the pressure measurement system, thereby achieving the technical effect of improving the pressure measurement accuracy.
  • Figure 1 schematically illustrates an exemplary system architecture in which the method of adjusting the response duration of a pressure measurement system of the present disclosure can be applied;
  • Figure 2 schematically shows a flow chart of a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure
  • Figure 3 schematically shows a flow chart of a method for determining a second to-be-consumed time period according to an embodiment of the present disclosure
  • Figure 4 schematically shows a logic block diagram of a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure
  • Figure 5 schematically shows a block diagram of a device for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure
  • FIG. 6 schematically shows a block diagram of an electronic device suitable for implementing a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure.
  • the inventor found that in the traditional stress testing mode, since the stress testing traffic is determined based on the quotient of the request thread and the response time, the response time will fluctuate with the fluctuation of the system, resulting in stress testing.
  • the flow rate is also in a fluctuating state, and the pressure measurement accuracy is low.
  • the pressure test traffic suddenly increases, which may cause online accidents.
  • manual real-time control is currently generally used.
  • manual control has poor timeliness, which will shorten the pressure measurement response time and reduce the pressure measurement efficiency.
  • embodiments of the present disclosure provide a method for adjusting the response time of the pressure measurement system, using the first response time in the response information of the n-1th simulated service request and the unconsumed first response time in the voltage stabilizing component.
  • the first time to be consumed and the preset response time are used to determine the second time to be consumed, and then the second adjustment time is determined based on the second time to be consumed and the first adjustment time, and the voltage stabilizing component is used to adjust the nth simulation according to the second adjustment time.
  • the voltage stabilizing component is used to adjust the response time of the n-th simulated service request according to the unconsumed time in the response information of n-1 simulated service requests, the response time of each simulated service request during the stress test process converges to the preset value.
  • the response time is long, so it at least partially overcomes the technical problem of the response time fluctuation of the pressure measurement system, thereby achieving the technical effect of improving the pressure measurement accuracy.
  • FIG. 1 schematically illustrates an exemplary system architecture 100 that may be used to adjust the response duration of a stress testing system according to an embodiment of the present disclosure.
  • Figure 1 is only an example of a system architecture to which embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure cannot be used in other applications.
  • the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105.
  • the network 104 is a medium used to provide communication links between the terminal devices 101, 102, 103 and the server 105.
  • Network 104 may include various connection types, such as wired and/or wireless communication links, and the like.
  • Terminal devices 101, 102, 103 Users can use terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc.
  • Various communication client applications can be installed on the terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and/or social platform software (examples only) ).
  • the terminal devices 101, 102, and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
  • the server 105 may be a server that provides various services, such as a backend management server that provides support for websites browsed by users using the terminal devices 101, 102, and 103 (example only).
  • the background management server can analyze and process the received user request and other data, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user request) to the terminal device.
  • the method for adjusting the response time of the pressure measurement system provided by the embodiment of the present disclosure can generally be executed by the server 105 .
  • the device for adjusting the response time of the stress measurement system provided by the embodiments of the present disclosure may generally be provided in the server 105 .
  • the method of adjusting the response time of the stress measurement system provided by the embodiments of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and/or the server 105.
  • the device for adjusting the response time of the stress measurement system provided by the embodiment of the present disclosure can also be provided in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and/or the server 105.
  • FIG. 2 schematically shows a flow chart of a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure.
  • the method includes operations S210 to S240.
  • the response information of the n-1th simulated service request is obtained from the memory, where the response information includes the first response duration and adjustment information, and the adjustment information is included in the stress testing system
  • the first adjustment time period consumed by the voltage stabilizing component and the first to-be-consumed time period not consumed by the voltage stabilizing component are used, where n is a positive integer greater than 2.
  • the initial value of the first adjustment duration recorded in the voltage stabilizing component and the first unconsumed to-be-consumed duration may be 0.
  • the first response duration AT n-1 can be the time from the start of the request for the n-1th simulated service request.
  • the total time to the end of the request which can include the actual time T n-1 for the stress measurement system to respond to the n-1th simulated service request and the time LT n-1 adjusted by the voltage stabilizing component.
  • the first time period to be consumed RT n-1 may be the time remaining in the voltage stabilizing component after the voltage stabilizing component adjusts the response time of the n-1th simulated service request.
  • a second to-be-consumed time length is determined based on the first response time, the preset response time and the first to-be-consumed time.
  • the preset response time represents the expected response time of the stress testing system for the simulated service request.
  • the preset response time is greater than The average response time of n-1 simulated service requests.
  • the preset response time TT may be the expected response time of the stress testing system for the simulated service request.
  • the preset response time TT is the stable value of the response time of the pressure measurement system expected to be adjusted by the voltage stabilizing component. This value can be determined based on empirical values or the average response time during the actual pressure measurement process. For example: if the average response time of a simulated service request is 180ms, you can set the preset response time to 200ms.
  • the second time period to be consumed RT n is determined based on the first response time period AT n-1 , the preset response time period TT and the first time period to be consumed RT n-1 .
  • the second adjustment duration is determined according to the second to-be-consumed duration and the first adjustment duration.
  • the initial value of the first adjustment duration may be the preset response duration TT.
  • the second time period to be consumed RT n and the first adjustment time period LT n-1 when the pressure measurement system responds to the nth simulation service request, the remaining second time period to be consumed RT n that can be used for consumption in the voltage stabilizing component can be determined. Whether it is possible to continue to adjust according to the first adjustment duration LT n-1 of the n-1th simulated service request.
  • the first adjustment period LT n-1 is less than the second to-be-consumed period RT n , since the adjustment time of the voltage stabilizing component cannot be less than 0, in this case, the nth simulation service request does not require voltage stabilizing component adjustment.
  • the response time that is, the second adjustment time is 0, and the remaining time to be consumed (RT n - LT n-1 ) can be used to adjust the response time of the n+1th simulated service request.
  • the first adjustment time LT n-1 is greater than the second to-be-consumed time RT n , it means that the nth simulation service request requires the voltage stabilizing component to adjust the response time, that is, the second adjustment time is LT n-1 -RT n .
  • the voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration.
  • the voltage stabilizing component may be provided in the stress testing tool, and in the process of the stress testing system responding to the nth simulated service request, the response duration of the nth simulated service request is adjusted according to the second adjustment duration. For example: you can add a second adjustment time based on the response time XT n of the stress testing system in response to the nth simulated service request. LTn -1 - RTn .
  • the second to-be-awaited duration is determined.
  • the technical method is to determine the second adjustment time based on the second time to be consumed and the first adjustment time, and use the voltage stabilizing component to adjust the response time of the nth simulated service request based on the second adjustment time. Since the voltage stabilizing component is used to adjust the response time of the n-th simulated service request according to the unconsumed time in the response information of n-1 simulated service requests, the response time of each simulated service request during the stress test process converges to the preset value.
  • the response time is long, so it at least partially overcomes the technical problem of the response time fluctuation of the pressure measurement system, thereby achieving the technical effect of improving the pressure measurement accuracy.
  • FIG. 3 schematically shows a flowchart of a method for determining the second to-be-consumed time period according to an embodiment of the present disclosure.
  • this embodiment includes S310 ⁇ S320.
  • the response deviation duration of the n-1th simulated service request is determined based on the first response duration and the preset response duration.
  • ST n-1 represents the response deviation time of the n-1th simulated service request
  • AT n-1 represents the first response time of the n-1 simulated service request
  • TT represents the preset response time.
  • the first response time of the n-1th simulated service request can be 230ms, and the preset response time can be 200ms, then the n-1th simulated service can be obtained by calculating according to Equation (2)
  • the requested response deviation is 30ms.
  • a second time period to be consumed is determined based on the response deviation time period and the first time period to be consumed.
  • RT n represents the second waiting time of the n-th simulated service request
  • ST n-1 represents the response deviation time of the n-1 simulated service request
  • RT n-1 represents the response deviation time of the n-1 simulated service request. The first time to be consumed.
  • the first time period to be consumed for the n-1th simulated service request may be 10 ms, and then the second time period to be consumed for the n-th simulated service request can be calculated according to Equation (3) to be 40 ms. .
  • the first time to be consumed that is not consumed by the voltage stabilizing component is used to determine the time to be consumed that can be used for the nth simulated service request. This is because the pressure test response time information of the n-1th simulated service request is used. Real-time control of the waiting time consumed by the nth simulated service request can achieve control that does not rely on human subjective factors, so that the stress measurement response time continues to become stable, thereby improving the stress measurement accuracy.
  • determining the second adjustment duration based on the second to-be-consumed duration and the first adjustment duration includes:
  • the difference between the first adjustment time period and the second time period to be consumed is determined as the second adjustment time length
  • the second adjustment duration is determined to be zero.
  • the second adjustment time period LT n when the second to-be-consumed time period RT n is less than the first adjustment time period LT n-1 , the second adjustment time period LT n can be determined according to Equation (4).
  • LT n LT n-1 -RT n (4)
  • the second time period to be consumed is 40 ms and the first adjustment time period is 60 ms, it may be determined that the second adjustment time period is 10 ms.
  • the adjustment time of the nth simulated service request is 0.
  • the second time to be consumed is 40ms
  • the first adjustment time is 30ms. It can be determined that the second adjustment time is 0, that is, for the nth simulated service request, there is no need to use a voltage stabilizing component to increase the response time of the stress measurement system.
  • the second adjustment duration is determined based on the second to-be-consumed duration and the first adjustment duration. This is because the pressure test response duration information of the n-1th simulated service request is used to determine in real time whether voltage stabilizing component adjustment is required.
  • the response time of the pressure measurement system can be adjusted without relying on human subjective factors, so that the response time of the pressure measurement system becomes more stable, thereby improving pressure measurement.
  • the method for adjusting the response duration of the pressure measurement system further includes:
  • the third time period to be consumed is determined based on the second time period to be consumed and the first adjustment time period.
  • the third time period to be consumed represents the remaining time recorded in the voltage stabilizing component after the second adjustment time period is consumed by the voltage stabilizing component.
  • the third to-be-consumed time period may be determined based on the second to-be-consumed time period RT n and the first adjustment time period LT n-1 .
  • the second adjustment time period LT n is LT n-1 -RT n , which means that in the nth simulated service request, stable use of
  • the response time of the stress measurement system for each simulated service request is automatically adjusted in real time to make it continuously approach stability, thereby improving the stress measurement accuracy.
  • determining the third time period to be consumed based on the second time period to be consumed and the first adjustment time period includes:
  • the difference between the second time period to be consumed and the first adjustment time period is determined as the third time period to be consumed.
  • the second time period to be consumed is 30ms
  • the first adjustment time period is 40ms.
  • the second adjustment time period is 10ms, which means that at this time, the remaining time period in the voltage stabilizing component is 0, and it can be determined that the third time period to be consumed is zero.
  • the third time period to be consumed RT n* can be calculated according to Equation (5).
  • RT n* RT n -LT n-1 (five)
  • RT n* represents the third time period to be consumed
  • RT n represents the second time period to be consumed
  • LT n-1 represents the first adjustment time period
  • the response time of the stress measurement system for each simulated service request is automatically adjusted in real time to make it continuously approach stability, thereby improving the stress measurement accuracy.
  • the above-mentioned method for adjusting the response duration of the stress testing system further includes: overwriting and writing the third to-be-consumed duration and the second adjustment duration into the memory for executing the n+1th simulated service request. Response time adjustment operation.
  • the map storage in Java is used in the embodiment of the present disclosure to store each The adjustment time of a simulated service request and the unconsumed time in the voltage stabilizing component can also be called the remaining time.
  • the first to-be-consumed duration RT n-1 is obtained from the map storage, and then RT n calculated according to equation (1) in the embodiment of the present disclosure is first overwritten Write the duration to be consumed into the map storage, and then obtain RT n from the map storage, which is used to determine the second adjustment duration LT n .
  • the second adjustment duration LT n overwrites the map storage of the adjustment duration, and updates the adjustment duration in the map storage of the adjustment duration to the adjustment duration of the nth simulated service request, so as to facilitate the n+1th simulated service request.
  • it is obtained from the map storage of the adjusted duration.
  • the third to-be-consumed duration and the second adjustment duration are overwritten and written into the memory, so that the n-th simulated service request uses the n-1th simulated service request adjustment information to determine the n-th simulated service request.
  • the adjustment of the response time of the pressure measurement system achieves the purpose of automatic regulation and accurate pressure measurement.
  • the voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration, including:
  • the request start time information ST1 is recorded.
  • the request start time information may be the specific time when the request started recorded by the stress testing system.
  • the end time of the pressure measurement system's response to the nth simulation service request is ST2.
  • the second adjustment time is LT n
  • the duration LT n can be extended based on the end time ST2.
  • LT n may be 10 ms
  • the request end time information ST3 may be determined to be time information obtained by extending the end time ST2 by 10 ms.
  • the adjusted response time of the nth simulated service request may be the difference between the request end time ST3 and the request start time ST1 adjusted by using the voltage stabilizing component.
  • the response time of the stress testing system for the nth simulated service request after adjustment using the voltage stabilizing component is determined, so as to calculate the pressure of the nth simulated service request. Measure the deviation between the system response time and the preset response time, and determine the time that needs to be adjusted for the n+1th simulated service request. This cycle makes the response time continue to converge to the preset response time, that is, it tends to a stable value. This enables accurate flow pressure measurement.
  • Figure 4 schematically shows a logic block diagram of a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure.
  • this embodiment includes operations S401 to S408
  • the response information of the n-1th simulated service request is obtained from the memory, where the response information includes the first response duration and adjustment information, and the adjustment information is included in the stress testing system
  • the first adjustment time period consumed by the voltage stabilizing component and the first to-be-consumed time period not consumed by the voltage stabilizing component are used, where n is a positive integer greater than 2;
  • a second time period to be consumed is determined based on the first response time, the preset response time and the first time to be consumed.
  • the preset response time represents the expected response time of the stress testing system for the simulated service request, and the preset response time is greater than The average response time of n-1 simulated service requests;
  • the difference between the first adjustment duration and the second to-be-consumed duration is determined as the second adjustment duration, and the third to-be-consumed duration is determined to be zero.
  • the second adjustment duration is determined to be zero, and the difference between the second to-be-consumed duration and the first adjustment duration is determined to be the third to-be-consumed duration.
  • the voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration.
  • the present disclosure also provides a device for adjusting the response time of the pressure measurement system.
  • the device will be described in detail below with reference to FIG. 5 .
  • FIG. 5 schematically shows a structural block diagram of a device for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure.
  • the device 500 for adjusting the response duration of the pressure measurement system in this embodiment includes an acquisition module 510 , a first determination module 520 , a second determination module 530 , and an adjustment module 540 .
  • the acquisition module 510 is used to acquire the response information of the n-1th simulation service request from the memory in response to the nth simulation service request, where the response information includes the first response duration and adjustment information, and the adjustment information
  • the information includes the consumption of the voltage stabilizing component during the process of the pressure measurement system responding to the n-1 simulated service request.
  • the acquisition module 510 may be used to perform the operation S210 described above, which will not be described again here.
  • the first determination module 520 is configured to determine the second time period to be consumed based on the first response time length, the preset response time length and the first time period to be consumed.
  • the preset response time length represents the expected response time length of each simulated service request.
  • the preset response time length The average response time is greater than n simulated service requests.
  • the first determination module 520 may be configured to perform the operation S220 described above, which will not be described again here.
  • the second determination module 530 is configured to determine the second adjustment duration according to the second to-be-consumed duration and the first adjustment duration.
  • the second determination module 530 may be configured to perform the operation S230 described above, which will not be described again here.
  • the adjustment module 540 is configured to use a voltage stabilizing component to adjust the response duration of the nth simulated service request according to the second adjustment duration.
  • the adjustment module 540 may be configured to perform the operation S240 described above, which will not be described again here.
  • the first determination module includes a first determination unit and a second determination unit.
  • the first determining unit is used to determine the response deviation duration of the n-1th simulated service request based on the first response duration and the preset response duration.
  • the second determination unit is configured to determine the second time period to be consumed based on the response deviation time period and the first time period to be consumed.
  • the second determination module includes a third determination unit and a fourth determination unit.
  • the third determining unit is configured to determine the difference between the first adjustment time period and the second time period to be consumed as the second adjustment time period when the second time period to be consumed is less than the first adjustment time period.
  • the fourth determination unit is configured to determine that the second adjustment duration is zero when the second to-be-consumed duration is greater than the first adjustment duration.
  • the device for adjusting the response time of the pressure measurement system further includes a third determination module for determining the third time to be consumed based on the second time to be consumed and the first adjustment time, and the third time to be consumed represents the After the voltage stabilizing component consumes the second adjustment duration, the remaining time recorded in the voltage stabilizing component is used.
  • the third determination module includes a fifth determination unit and a sixth determination unit.
  • the fifth determination unit is configured to determine that the third time period to be consumed is zero when the second time period to be consumed is less than the first adjustment time period.
  • the sixth determination unit is configured to determine the difference between the second time period to be consumed and the first adjustment time period as the third time period to be consumed when the second time period to be consumed is greater than the first adjustment time period.
  • the above-mentioned device for adjusting the response duration of the pressure measurement system further includes a storage module for overwriting and writing the third to-be-consumed duration and the second adjustment duration into the memory for performing the n+1th simulation. Adjustment of response times for service requests.
  • the adjustment module includes a recording unit, a consumption unit, a seventh determination unit and an eighth determination unit.
  • the recording unit is used to record the request start time information in response to the nth simulated service request.
  • the consumption unit is configured to use the voltage stabilizing component to consume the second adjustment duration when the response to the nth simulated service request ends.
  • the seventh determination unit is used to determine the request end time information based on the pressure test start time and the second adjustment duration.
  • the eighth determination unit is used to determine the adjusted response time of the nth simulated service request based on the stress test start time information and the stress test end time information.
  • Any multiple of the modules, units, or at least part of the functions of any multiple of the modules according to the embodiments of the present disclosure may be implemented in one module. Any one or more of the modules and units according to the embodiments of the present disclosure can be split into multiple modules for implementation. Any one or more of the modules and units according to the embodiments of the present disclosure may be at least partially implemented as hardware circuits, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, or a circuit on a substrate.
  • FPGA field programmable gate array
  • PLA programmable logic array
  • System, system-on-package, application-specific integrated circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner that integrates or packages circuits, or in any of the three implementations: software, hardware, or firmware or an appropriate combination of any of them.
  • one or more of the modules and units according to the embodiments of the present disclosure may be at least partially implemented as a computer program module, and when the computer program module is executed, corresponding functions may be performed.
  • any multiple of the acquisition module 510, the first determination module 520, the second determination module 530, and the adjustment module 540 can be combined and implemented in one module/unit/subunit, or any one module/unit/subunit among them. Can be split into multiple modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/subunits may be combined with at least part of the functionality of other modules/units/subunits and combined in one module/unit/subunit realized in.
  • At least one of the acquisition module 510, the first determination module 520, the second determination module 530, and the adjustment module 540 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), Implemented by hardware or firmware such as a programmable logic array (PLA), system on a chip, system on a substrate, system on a package, application specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, Or it can be implemented in any one of the three implementation methods of software, hardware and firmware, or in an appropriate combination of any of them.
  • at least one of the acquisition module 510, the first determination module 520, the second determination module 530, and the adjustment module 540 can be at least partially implemented as a computer program module. When the computer program module is run, corresponding functions can be performed. .
  • FIG. 6 schematically shows a block diagram of an electronic device suitable for implementing the above-described method according to an embodiment of the present disclosure.
  • the electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • an electronic device 600 includes a processor 601, which can store The program in the read-only memory (ROM) 602 or the program loaded from the storage section 608 into the random access memory (RAM) 603 executes various appropriate actions and processes.
  • Processor 601 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or associated chipset, and/or a special-purpose microprocessor (eg, an application specific integrated circuit (ASIC)), among others.
  • Processor 601 may also include onboard memory for caching purposes.
  • the processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
  • the processor 601, ROM 602 and RAM 603 are connected to each other through a bus 604.
  • the processor 601 performs various operations according to the method flow of the embodiment of the present disclosure by executing programs in the ROM 602 and/or RAM 603. It should be noted that the program may also be stored in one or more memories other than ROM 602 and RAM 603.
  • the processor 601 may also perform various operations according to the method flow of embodiments of the present disclosure by executing programs stored in the one or more memories.
  • the electronic device 600 may further include an input/output (I/O) interface 605 that is also connected to the bus 604 .
  • System 600 may also include one or more of the following components connected to I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; including a cathode ray tube (CRT), liquid crystal display (LCD), etc.; and a speaker. an output section 607, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet.
  • Driver 610 is also connected to I/O interface 605 as needed.
  • Removable media 611 such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
  • the method flow according to the embodiments of the present disclosure may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611.
  • the computer program is executed by the processor 601, the above-described functions defined in the system of the embodiment of the present disclosure are performed.
  • the systems, devices, devices, modules, units, etc. described above may be implemented by computer program modules.
  • the present disclosure also provides a computer-readable storage medium.
  • the computer-readable storage medium may be included in the device/device/system described in the above embodiments; it may also exist independently without being assembled into the device/system. in the device/system.
  • the above computer-readable storage medium carries one or more programs. When the above one or more programs When executed, methods according to embodiments of the present disclosure are implemented.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the computer-readable storage medium may include one or more memories other than ROM 602 and/or RAM 603 and/or ROM 602 and RAM 603 described above.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.

Abstract

Provided are a method and apparatus for adjusting a response duration of a stress test system, and a device and a medium, which can be applied to the technical field of computers. The method comprises: in response to an nth simulated service request, acquiring response information of an (n-1)th simulated service request from a memory, wherein the response information comprises a first response duration and adjustment information, the adjustment information comprises a first adjustment duration consumed by using a stress stabilization assembly, and a first duration to be consumed, which is not consumed by the stress stabilization assembly during the process of a stress test system responding to the (n-1)th simulated service request, and n is a positive integer greater than 2; according to the first response duration, a preset response duration and the first duration to be consumed, determining a second duration to be consumed; determining a second adjustment duration according to the second duration to be consumed and the first adjustment duration; and according to the second adjustment duration, adjusting a response duration of the nth simulated service request by using the stress stabilization assembly.

Description

调节压测系统响应时长的方法、装置、设备、介质Methods, devices, equipment and media for adjusting the response time of the pressure measurement system
本申请要求于2022年8月23日提交的、申请号为202211015694.7的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202211015694.7, submitted on August 23, 2022, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本公开涉及计算机技术领域,更具体地,涉及一种调节压测系统响应时长的方法、装置、设备、介质和程序产品。The present disclosure relates to the field of computer technology, and more specifically, to a method, device, equipment, medium and program product for adjusting the response time of a pressure measurement system.
背景技术Background technique
压测即压力测试,是确定系统稳定性的一种测试方法,通常在系统正常运作范围之外进行,以考察系统的功能极限和隐患。传统的压测方式一般是对模拟线程进行发压,根据压测系统响应时长,计算压测流量。Stress testing is a testing method to determine system stability. It is usually performed outside the normal operating range of the system to examine the functional limits and hidden dangers of the system. The traditional pressure testing method generally applies pressure to the simulation thread, and calculates the pressure measurement flow based on the response time of the pressure measurement system.
在实现本公开构思的过程中,发明人发现相关技术中至少存在如下问题:由于响应时长会受到系统响应波动、网络波动、系统降级、开关操作等各种因素的干扰,使得压测流量呈现出不断波动的状态,降低了压测精度。In the process of realizing the concept of the present disclosure, the inventor found that there are at least the following problems in related technologies: since the response time will be interfered by various factors such as system response fluctuations, network fluctuations, system degradation, switch operations, etc., the pressure measurement flow will appear The constantly fluctuating state reduces the pressure measurement accuracy.
发明内容Contents of the invention
有鉴于此,本公开提供了一种调节压测系统响应时长的方法、装置、设备、介质和程序产品。In view of this, the present disclosure provides a method, device, equipment, medium and program product for adjusting the response time of a pressure measurement system.
本公开的一个方面提供了一种调节压测系统响应时长的方法,包括:One aspect of the present disclosure provides a method for adjusting the response time of a pressure measurement system, including:
响应于第n次模拟服务请求,从存储器中获取第n-1次模拟服务请求的响应信息,其中,响应信息中包括第一响应时长和调节信息,调节信息包括在压测系统响应第n-1次模拟服务请求的过程中,利用稳压组件消耗的第一调节时长和稳压组件未消耗的第一待消耗时长;In response to the n-th simulated service request, the response information of the n-1th simulated service request is obtained from the memory, where the response information includes the first response duration and adjustment information, and the adjustment information is included in the stress testing system's response to the n-1st simulated service request. In the process of simulating a service request, the first adjustment time consumed by the voltage stabilizing component and the first unconsumed waiting time of the voltage stabilizing component are used;
根据第一响应时长、预设响应时长和第一待消耗时长,确定第二待消耗时长,预设响应时长表征压测系统针对模拟服务请求的期望响应时长,预设响应时长大于n-1次模拟服务请求的平均响应时长,其中,n为大于2的正整数;Determine the second time to be consumed based on the first response time, the preset response time and the first time to be consumed. The preset response time represents the expected response time of the stress testing system for the simulated service request. The preset response time is greater than n-1 times. Simulate the average response time of service requests, where n is a positive integer greater than 2;
根据第二待消耗时长和第一调节时长确定第二调节时长;Determine the second adjustment duration based on the second to-be-consumed duration and the first adjustment duration;
利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长。 Using the voltage stabilizing component, the response duration of the nth simulated service request is adjusted according to the second adjustment duration.
根据本公开的实施例,根据第一响应时长、预设响应时长和第一待消耗时长,确定第二待消耗时长,包括:According to an embodiment of the present disclosure, determining the second time period to be consumed based on the first response time period, the preset response time length and the first time period to be consumed includes:
根据第一响应时长、预设响应时长,确定第n-1次模拟服务请求的响应偏差时长;Determine the response deviation duration of the n-1th simulated service request based on the first response duration and the preset response duration;
根据响应偏差时长和第一待消耗时长,确定第二待消耗时长。The second time period to be consumed is determined based on the response deviation time period and the first time period to be consumed.
根据本公开的实施例,根据第二待消耗时长和第一调节时长确定第二调节时长,包括:According to an embodiment of the present disclosure, determining the second adjustment duration based on the second to-be-consumed duration and the first adjustment duration includes:
在第二待消耗时长小于第一调节时长的情况下,将第一调节时长和第二待消耗时长之差确定为第二调节时长;When the second time period to be consumed is less than the first adjustment time period, the difference between the first adjustment time period and the second time period to be consumed is determined as the second adjustment time length;
在第二待消耗时长大于第一调节时长的情况下,确定第二调节时长为零。In the case where the second to-be-consumed duration is greater than the first adjustment duration, the second adjustment duration is determined to be zero.
根据本公开的实施例,上述调节压测系统响应时长的方法还包括:According to an embodiment of the present disclosure, the method for adjusting the response duration of the pressure measurement system further includes:
根据第二待消耗时长和第一调节时长,确定第三待消耗时长,第三待消耗时长表征利用稳压组件消耗第二调节时长之后,稳压组件中记录的剩余时长。The third time period to be consumed is determined based on the second time period to be consumed and the first adjustment time period. The third time period to be consumed represents the remaining time recorded in the voltage stabilizing component after the second adjustment time period is consumed by the voltage stabilizing component.
根据本公开的实施例,根据第二待消耗时长和第一调节时长,确定第三待消耗时长,包括:According to an embodiment of the present disclosure, determining the third time period to be consumed based on the second time period to be consumed and the first adjustment time period includes:
在第二待消耗时长小于第一调节时长的情况下,确定第三待消耗时长为零;When the second time period to be consumed is less than the first adjustment time period, it is determined that the third time period to be consumed is zero;
在第二待消耗时长大于第一调节时长的情况下,将第二待消耗时长和第一调节时长之差确定为第三待消耗时长。When the second time period to be consumed is greater than the first adjustment time period, the difference between the second time period to be consumed and the first adjustment time period is determined as the third time period to be consumed.
根据本公开的实施例,上述调节压测系统响应时长的方法还包括:According to an embodiment of the present disclosure, the method for adjusting the response duration of the pressure measurement system further includes:
将第三待消耗时长和第二调节时长,覆盖写入存储器中,用于执行第n+1次模拟服务请求的响应时间的调节操作。The third to-be-consumed duration and the second adjustment duration are overwritten and written into the memory for performing the adjustment operation of the response time of the (n+1)th simulated service request.
根据本公开的实施例,利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长,包括:According to an embodiment of the present disclosure, the voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration, including:
响应于第n次模拟服务请求,记录请求开始时刻信息;In response to the nth simulated service request, record the request start time information;
在第n次模拟服务请求的响应结束的情况下,利用稳压组件消耗第二调节时长;When the response to the nth simulated service request ends, use the voltage stabilizing component to consume the second adjustment time;
根据压测开始时刻和第二调节时长,确定请求结束时刻信息;Determine the request end time information based on the stress test start time and the second adjustment duration;
根据压测开始时刻信息和压测结束时刻信息,确定调节后的第n次模拟服务请求的响应时长。Based on the stress test start time information and the stress test end time information, determine the adjusted response time for the nth simulated service request.
本公开的另一个方面提供了一种调节压测系统响应时长的装置,包括:获取模块、第一确定模块、第二确定模块和调节模块。其中,获取模块,用于响应于第n次模拟服务请求,从存储器中获取第n-1次模拟服务请求的响应信息,其中,响应信息中包括 第一响应时长和调节信息,调节信息包括在压测系统响应第n-1次模拟服务请求的过程中,利用稳压组件消耗的第一调节时长和稳压组件未消耗的第一待消耗时长,其中,n为大于2的正整数。第一确定模块,用于根据第一响应时长、预设响应时长和第一待消耗时长,确定第二待消耗时长,预设响应时长表征每一次模拟服务请求的期望响应时长,预设响应时长大于n次模拟服务请求的平均响应时长。第二确定模块,用于根据第二待消耗时长和第一调节时长确定第二调节时长。调节模块,用于利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长。Another aspect of the present disclosure provides a device for adjusting the response duration of a pressure measurement system, including: an acquisition module, a first determination module, a second determination module, and an adjustment module. Among them, the acquisition module is used to respond to the n-th simulated service request and obtain the response information of the n-1th simulated service request from the memory, where the response information includes The first response time and adjustment information. The adjustment information includes the first adjustment time consumed by the voltage stabilizing component and the first unconsumed time to be consumed by the voltage stabilizing component during the process of the pressure measurement system responding to the n-1th simulated service request. , where n is a positive integer greater than 2. The first determination module is used to determine the second to-be-consumed duration based on the first response duration, the preset response duration and the first to-be-consumed duration. The preset response duration represents the expected response duration of each simulated service request. The preset response duration The average response time is greater than n simulated service requests. The second determination module is configured to determine the second adjustment duration based on the second to-be-consumed duration and the first adjustment duration. The adjustment module is configured to use the voltage stabilizing component to adjust the response duration of the nth simulated service request according to the second adjustment duration.
根据本公开的实施例,第一确定模块包括第一确定单元和第二确定单元。其中,第一确定单元,用于根据第一响应时长、预设响应时长,确定第n-1次模拟服务请求的响应偏差时长。第二确定单元,用于根据响应偏差时长和第一待消耗时长,确定第二待消耗时长。According to an embodiment of the present disclosure, the first determination module includes a first determination unit and a second determination unit. Wherein, the first determining unit is used to determine the response deviation duration of the n-1th simulated service request based on the first response duration and the preset response duration. The second determination unit is configured to determine the second time period to be consumed based on the response deviation time period and the first time period to be consumed.
根据本公开的实施例,第二确定模块包括第三确定单元和第四确定单元。其中,第三确定单元,用于在第二待消耗时长小于第一调节时长的情况下,将第一调节时长和第二待消耗时长之差确定为第二调节时长。第四确定单元,用于在第二待消耗时长大于第一调节时长的情况下,确定第二调节时长为零。According to an embodiment of the present disclosure, the second determination module includes a third determination unit and a fourth determination unit. Wherein, the third determining unit is configured to determine the difference between the first adjustment time period and the second time period to be consumed as the second adjustment time period when the second time period to be consumed is less than the first adjustment time period. The fourth determination unit is configured to determine that the second adjustment duration is zero when the second to-be-consumed duration is greater than the first adjustment duration.
根据本公开的实施例,上述调节压测系统响应时长的装置还包括第三确定模块,用于根据第二待消耗时长和第一调节时长,确定第三待消耗时长,第三待消耗时长表征利用稳压组件消耗第二调节时长之后,稳压组件中记录的剩余时长。According to an embodiment of the present disclosure, the device for adjusting the response time of the pressure measurement system further includes a third determination module for determining the third time to be consumed based on the second time to be consumed and the first adjustment time, and the third time to be consumed represents the After the voltage stabilizing component consumes the second adjustment duration, the remaining time recorded in the voltage stabilizing component is used.
根据本公开的实施例,第三确定模块包括第五确定单元和第六确定单元。其中,第五确定单元,用于在第二待消耗时长小于第一调节时长的情况下,确定第三待消耗时长为零。第六确定单元,用于在第二待消耗时长大于第一调节时长的情况下,将第二待消耗时长和第一调节时长之差确定为第三待消耗时长。According to an embodiment of the present disclosure, the third determination module includes a fifth determination unit and a sixth determination unit. Wherein, the fifth determination unit is configured to determine that the third time period to be consumed is zero when the second time period to be consumed is less than the first adjustment time period. The sixth determination unit is configured to determine the difference between the second time period to be consumed and the first adjustment time period as the third time period to be consumed when the second time period to be consumed is greater than the first adjustment time period.
根据本公开的实施例,上述调节压测系统响应时长的装置还包括存储模块,用于将第三待消耗时长和第二调节时长,覆盖写入存储器中,用于执行第n+1次模拟服务请求的响应时间的调节操作。According to an embodiment of the present disclosure, the above-mentioned device for adjusting the response duration of the pressure measurement system further includes a storage module for overwriting and writing the third to-be-consumed duration and the second adjustment duration into the memory for performing the n+1th simulation. Adjustment of response times for service requests.
根据本公开的实施例,调节模块包括记录单元、消耗单元、第七确定单元和第八确定单元。其中,记录单元,用于响应于第n次模拟服务请求,记录请求开始时刻信息。消耗单元,用于在第n次模拟服务请求的响应结束的情况下,利用稳压组件消耗第二调节时长。第七确定单元,用于根据压测开始时刻和第二调节时长,确定请求结束时刻信息。第八确定单元,用于根据压测开始时刻信息和压测结束时刻信息,确定调节后的第 n次模拟服务请求的响应时长。According to an embodiment of the present disclosure, the adjustment module includes a recording unit, a consumption unit, a seventh determination unit and an eighth determination unit. The recording unit is used to record the request start time information in response to the nth simulated service request. The consumption unit is configured to use the voltage stabilizing component to consume the second adjustment duration when the response to the nth simulated service request ends. The seventh determination unit is used to determine the request end time information based on the pressure test start time and the second adjustment duration. The eighth determination unit is used to determine the adjusted third value based on the pressure test start time information and the pressure test end time information. The response time of n simulated service requests.
本公开的另一方面提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,其中,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器执行本公开实施例所述的方法。Another aspect of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors When, one or more processors are caused to execute the method described in the embodiment of the present disclosure.
本公开的另一方面提供了一种计算机可读存储介质,存储有计算机可执行指令,所述指令在被执行时用于实现本公开实施例所述的方法。Another aspect of the disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are used to implement the methods described in embodiments of the disclosure.
本公开的另一方面提供了一种计算机程序产品,上述计算机程序产品包括计算机可执行指令,上述指令在被执行时用于实现本公开实施例所述的方法。Another aspect of the disclosure provides a computer program product. The computer program product includes computer-executable instructions. When executed, the instructions are used to implement the methods described in the embodiments of the disclosure.
根据本公开的实施例,因为采用了第n-1次模拟服务请求的响应信息中的第一响应时长、稳压组件中未消耗的第一待消耗时长和预设响应时长,确定第二待消耗时长,再根据第二待消耗时长和第一调节时长确定第二调节时长,利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长的技术手段。由于利用稳压组件按照n-1次模拟服务请求的响应信息中的未消耗时长,调节第n次模拟服务请求的响应时长,使得压测过程中每一次模拟服务请求的响应时长收敛于预设响应时长,所以至少部分地克服了压测系统的响应时长波动的技术问题,进而达到了提高压测精度的技术效果。According to the embodiment of the present disclosure, because the first response duration in the response information of the n-1th simulated service request, the unconsumed first to-be-consumed duration and the preset response duration in the voltage stabilizing component are used, the second to-be-awaited duration is determined. The technical method is to determine the second adjustment time based on the second time to be consumed and the first adjustment time, and use the voltage stabilizing component to adjust the response time of the nth simulated service request based on the second adjustment time. Since the voltage stabilizing component is used to adjust the response time of the n-th simulated service request according to the unconsumed time in the response information of n-1 simulated service requests, the response time of each simulated service request during the stress test process converges to the preset value. The response time is long, so it at least partially overcomes the technical problem of the response time fluctuation of the pressure measurement system, thereby achieving the technical effect of improving the pressure measurement accuracy.
附图说明Description of drawings
通过以下参照附图对本公开实施例的描述,本公开的上述以及其他目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
图1示意性示出了可以应用本公开的调节压测系统响应时长方法的示例性系统架构;Figure 1 schematically illustrates an exemplary system architecture in which the method of adjusting the response duration of a pressure measurement system of the present disclosure can be applied;
图2示意性示出了根据本公开实施例的调节压测系统响应时长方法的流程图;Figure 2 schematically shows a flow chart of a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure;
图3示意性示出了根据本公开实施例的确定第二待消耗时长的方法流程图;Figure 3 schematically shows a flow chart of a method for determining a second to-be-consumed time period according to an embodiment of the present disclosure;
图4示意性示出了根据本公开实施例的调节压测系统响应时长方法的逻辑框图;Figure 4 schematically shows a logic block diagram of a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure;
图5示意性示出了根据本公开实施例的调节压测系统响应时长装置的框图;以及Figure 5 schematically shows a block diagram of a device for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure; and
图6示意性示出了根据本公开实施例的适于实现调节压测系统响应时长方法的电子设备的框图。FIG. 6 schematically shows a block diagram of an electronic device suitable for implementing a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细 节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, many specific details are set forth to facilitate explanation. Sections are provided to provide a comprehensive understanding of embodiments of the present disclosure. It will be apparent, however, that one or more embodiments may be practiced without these specific details. Furthermore, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily confusing the concepts of the present disclosure.
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. The terms "comprising," "comprising," and the like, as used herein, indicate the presence of stated features, steps, operations, and/or components but do not exclude the presence or addition of one or more other features, steps, operations, or components.
在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used here should be interpreted to have meanings consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where an expression similar to "at least one of A, B, C, etc." is used, it should generally be interpreted in accordance with the meaning that a person skilled in the art generally understands the expression to mean (e.g., "having A, B and C "A system with at least one of" shall include, but is not limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or systems with A, B, C, etc. ).
在实施本公开实施例的过程中,发明人发现传统的压测模式下,由于压测流量是根据请求线程与响应时长的商确定的,响应时长会随着系统的波动而波动,导致压测流量也处于波动状态,压测精度较低。在一切响应时长骤降的情况下,压测流量骤然上升,会造成线上事故。为了解决这个问题,目前一般采用人工进行实时调控,但是人工调控的时效性较差,会徒层压测响应时长,降低压测效率。In the process of implementing the embodiments of the present disclosure, the inventor found that in the traditional stress testing mode, since the stress testing traffic is determined based on the quotient of the request thread and the response time, the response time will fluctuate with the fluctuation of the system, resulting in stress testing. The flow rate is also in a fluctuating state, and the pressure measurement accuracy is low. When all response times plummet, the pressure test traffic suddenly increases, which may cause online accidents. In order to solve this problem, manual real-time control is currently generally used. However, manual control has poor timeliness, which will shorten the pressure measurement response time and reduce the pressure measurement efficiency.
有鉴于此,本公开的实施例提供了一种调节压测系统响应时长的方法,采用了第n-1次模拟服务请求的响应信息中的第一响应时长、稳压组件中未消耗的第一待消耗时长和预设响应时长,确定第二待消耗时长,再根据第二待消耗时长和第一调节时长确定第二调节时长,利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长的技术手段。由于利用稳压组件按照n-1次模拟服务请求的响应信息中的未消耗时长,调节第n次模拟服务请求的响应时长,使得压测过程中每一次模拟服务请求的响应时长收敛于预设响应时长,所以至少部分地克服了压测系统的响应时长波动的技术问题,进而达到了提高压测精度的技术效果。In view of this, embodiments of the present disclosure provide a method for adjusting the response time of the pressure measurement system, using the first response time in the response information of the n-1th simulated service request and the unconsumed first response time in the voltage stabilizing component. The first time to be consumed and the preset response time are used to determine the second time to be consumed, and then the second adjustment time is determined based on the second time to be consumed and the first adjustment time, and the voltage stabilizing component is used to adjust the nth simulation according to the second adjustment time. Technical means of response time for service requests. Since the voltage stabilizing component is used to adjust the response time of the n-th simulated service request according to the unconsumed time in the response information of n-1 simulated service requests, the response time of each simulated service request during the stress test process converges to the preset value. The response time is long, so it at least partially overcomes the technical problem of the response time fluctuation of the pressure measurement system, thereby achieving the technical effect of improving the pressure measurement accuracy.
图1示意性示出了根据本公开实施例的可以应用调节压测系统响应时长的示例性系统架构100。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。 FIG. 1 schematically illustrates an exemplary system architecture 100 that may be used to adjust the response duration of a stress testing system according to an embodiment of the present disclosure. It should be noted that Figure 1 is only an example of a system architecture to which embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure cannot be used in other applications. Device, system, environment or scenario.
如图1所示,根据该实施例的系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线和/或无线通信链路等等。As shown in Figure 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is a medium used to provide communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired and/or wireless communication links, and the like.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端和/或社交平台软件等(仅为示例)。Users can use terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and/or social platform software (examples only) ).
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
服务器105可以是提供各种服务的服务器,例如对用户利用终端设备101、102、103所浏览的网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的用户请求等数据进行分析等处理,并将处理结果(例如根据用户请求获取或生成的网页、信息、或数据等)反馈给终端设备。The server 105 may be a server that provides various services, such as a backend management server that provides support for websites browsed by users using the terminal devices 101, 102, and 103 (example only). The background management server can analyze and process the received user request and other data, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user request) to the terminal device.
需要说明的是,本公开实施例所提供的调节压测系统响应时长方法一般可以由服务器105执行。相应地,本公开实施例所提供的调节压测系统响应时长的装置一般可以设置于服务器105中。本公开实施例所提供的调节压测系统响应时长的方法也可以由不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群执行。相应地,本公开实施例所提供的调节压测系统响应时长的装置也可以设置于不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群中。It should be noted that the method for adjusting the response time of the pressure measurement system provided by the embodiment of the present disclosure can generally be executed by the server 105 . Accordingly, the device for adjusting the response time of the stress measurement system provided by the embodiments of the present disclosure may generally be provided in the server 105 . The method of adjusting the response time of the stress measurement system provided by the embodiments of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and/or the server 105. Correspondingly, the device for adjusting the response time of the stress measurement system provided by the embodiment of the present disclosure can also be provided in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and/or the server 105.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 1 is only illustrative. Depending on implementation needs, there can be any number of end devices, networks, and servers.
图2示意性示出了根据本公开实施例的调节压测系统响应时长的方法的流程图。FIG. 2 schematically shows a flow chart of a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure.
如图2所示,该方法包括操作S210~S240。As shown in Figure 2, the method includes operations S210 to S240.
在操作S210,响应于第n次模拟服务请求,从存储器中获取第n-1次模拟服务请求的响应信息,其中,响应信息中包括第一响应时长和调节信息,调节信息包括在压测系统响应第n-1次模拟服务请求的过程中,利用稳压组件消耗的第一调节时长和稳压组件未消耗的第一待消耗时长,其中,n为大于2的正整数。In operation S210, in response to the nth simulated service request, the response information of the n-1th simulated service request is obtained from the memory, where the response information includes the first response duration and adjustment information, and the adjustment information is included in the stress testing system In the process of responding to the n-1th simulated service request, the first adjustment time period consumed by the voltage stabilizing component and the first to-be-consumed time period not consumed by the voltage stabilizing component are used, where n is a positive integer greater than 2.
根据本公开的实施例,稳压组件中记录的第一调节时长、未消耗的第一待消耗时长的初始值可以为0。第一响应时长ATn-1可以为第n-1次模拟服务请求从请求开始时刻 到请求结束时刻的总时长,该总时长可以包括压测系统响应第n-1次模拟服务请求的实际时长Tn-1和利用稳压组件调节的时长LTn-1。第一待消耗时长RTn-1可以为稳压组件在调节完第n-1次模拟服务请求的响应时长之后,稳压组件中剩余的时长。According to an embodiment of the present disclosure, the initial value of the first adjustment duration recorded in the voltage stabilizing component and the first unconsumed to-be-consumed duration may be 0. The first response duration AT n-1 can be the time from the start of the request for the n-1th simulated service request. The total time to the end of the request, which can include the actual time T n-1 for the stress measurement system to respond to the n-1th simulated service request and the time LT n-1 adjusted by the voltage stabilizing component. The first time period to be consumed RT n-1 may be the time remaining in the voltage stabilizing component after the voltage stabilizing component adjusts the response time of the n-1th simulated service request.
在操作S220,根据第一响应时长、预设响应时长和第一待消耗时长,确定第二待消耗时长,预设响应时长表征压测系统针对模拟服务请求的期望响应时长,预设响应时长大于n-1次模拟服务请求的平均响应时长。In operation S220, a second to-be-consumed time length is determined based on the first response time, the preset response time and the first to-be-consumed time. The preset response time represents the expected response time of the stress testing system for the simulated service request. The preset response time is greater than The average response time of n-1 simulated service requests.
根据本公开的实施例,预设响应时长TT可以为压测系统针对模拟服务请求的期望响应时长。该预设响应时长TT是期望通过稳压组件调节得到的压测系统响应时长的稳定值,该值可以根据经验值确定,也可以根据实际压测过程中的平均响应时长确定。例如:模拟服务请求的平均响应时长为180ms,可以设置预设响应时长为200ms。According to an embodiment of the present disclosure, the preset response time TT may be the expected response time of the stress testing system for the simulated service request. The preset response time TT is the stable value of the response time of the pressure measurement system expected to be adjusted by the voltage stabilizing component. This value can be determined based on empirical values or the average response time during the actual pressure measurement process. For example: if the average response time of a simulated service request is 180ms, you can set the preset response time to 200ms.
根据本公开的实施例,根据第一响应时长ATn-1、预设响应时长TT和第一待消耗时长RTn-1,确定第二待消耗时长RTn。第二待消耗时长表征针对第n次模拟服务请求,稳压组件中可以用于消耗的总的待消耗时长。因此,第二待消耗时长RTn可以利用式(一)计算:
RTn=ATn-1-TT+RTn-1                  (一)
According to an embodiment of the present disclosure, the second time period to be consumed RT n is determined based on the first response time period AT n-1 , the preset response time period TT and the first time period to be consumed RT n-1 . The second time period to be consumed represents the total time period to be consumed that can be consumed in the voltage stabilizing component for the nth simulated service request. Therefore, the second time to be consumed RT n can be calculated using equation (1):
RT n =AT n-1 -TT+RT n-1 (1)
在操作S230,根据第二待消耗时长和第一调节时长确定第二调节时长。In operation S230, the second adjustment duration is determined according to the second to-be-consumed duration and the first adjustment duration.
根据本公开的实施例,第一调节时长的初始值可以为预设响应时长TT。可以根据第二待消耗时长RTn和第一调节时长LTn-1,确定在压测系统响应第n次模拟服务请求时,稳压组件中剩余的可用于消耗的第二待消耗时长RTn是否可以按照第n-1次模拟服务请求的第一调节时长LTn-1继续进行调节。当第一调节时长LTn-1小于第二待消耗时长RTn时,由于稳压组件的调节时间不能小于0,因此,在这种情况下,第n次模拟服务请求不需要稳压组件调节响应时长,即第二调节时长为0,将剩余的待消耗时长(RTn-LTn-1)可以用于第n+1次的模拟服务请求的响应时长的调节。当第一调节时长LTn-1大于第二待消耗时长RTn时,表示第n次模拟服务请求需要稳压组件调节响应时长,即第二调节时长为LTn-1-RTnAccording to an embodiment of the present disclosure, the initial value of the first adjustment duration may be the preset response duration TT. According to the second time period to be consumed RT n and the first adjustment time period LT n-1 , when the pressure measurement system responds to the nth simulation service request, the remaining second time period to be consumed RT n that can be used for consumption in the voltage stabilizing component can be determined. Whether it is possible to continue to adjust according to the first adjustment duration LT n-1 of the n-1th simulated service request. When the first adjustment period LT n-1 is less than the second to-be-consumed period RT n , since the adjustment time of the voltage stabilizing component cannot be less than 0, in this case, the nth simulation service request does not require voltage stabilizing component adjustment. The response time, that is, the second adjustment time is 0, and the remaining time to be consumed (RT n - LT n-1 ) can be used to adjust the response time of the n+1th simulated service request. When the first adjustment time LT n-1 is greater than the second to-be-consumed time RT n , it means that the nth simulation service request requires the voltage stabilizing component to adjust the response time, that is, the second adjustment time is LT n-1 -RT n .
在操作S240,利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长。In operation S240, the voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration.
根据本公开的实施例,稳压组件可以设置在压测工具中,在压测系统响应第n次模拟服务请求的过程中,根据第二调节时长调节第n次模拟服务请求的响应时长。例如:可以在压测系统响应第n次模拟服务请求的响应时长XTn的基础上增加第二调节时长 LTn-1-RTnAccording to an embodiment of the present disclosure, the voltage stabilizing component may be provided in the stress testing tool, and in the process of the stress testing system responding to the nth simulated service request, the response duration of the nth simulated service request is adjusted according to the second adjustment duration. For example: you can add a second adjustment time based on the response time XT n of the stress testing system in response to the nth simulated service request. LTn -1 - RTn .
根据本公开的实施例,因为采用了第n-1次模拟服务请求的响应信息中的第一响应时长、稳压组件中未消耗的第一待消耗时长和预设响应时长,确定第二待消耗时长,再根据第二待消耗时长和第一调节时长确定第二调节时长,利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长的技术手段。由于利用稳压组件按照n-1次模拟服务请求的响应信息中的未消耗时长,调节第n次模拟服务请求的响应时长,使得压测过程中每一次模拟服务请求的响应时长收敛于预设响应时长,所以至少部分地克服了压测系统的响应时长波动的技术问题,进而达到了提高压测精度的技术效果。According to the embodiment of the present disclosure, because the first response duration in the response information of the n-1th simulated service request, the unconsumed first to-be-consumed duration and the preset response duration in the voltage stabilizing component are used, the second to-be-awaited duration is determined. The technical method is to determine the second adjustment time based on the second time to be consumed and the first adjustment time, and use the voltage stabilizing component to adjust the response time of the nth simulated service request based on the second adjustment time. Since the voltage stabilizing component is used to adjust the response time of the n-th simulated service request according to the unconsumed time in the response information of n-1 simulated service requests, the response time of each simulated service request during the stress test process converges to the preset value. The response time is long, so it at least partially overcomes the technical problem of the response time fluctuation of the pressure measurement system, thereby achieving the technical effect of improving the pressure measurement accuracy.
下面参考图3~图4,结合具体实施例对图2所示的方法做进一步说明。The method shown in Figure 2 will be further described below with reference to Figures 3 to 4 and in combination with specific embodiments.
图3示意性示出了根据本公开实施例的确定第二待消耗时长的方法流程图。FIG. 3 schematically shows a flowchart of a method for determining the second to-be-consumed time period according to an embodiment of the present disclosure.
如图3所示,该实施例包括S310~S320。As shown in Figure 3, this embodiment includes S310~S320.
在操作S310,根据第一响应时长、预设响应时长,确定第n-1次模拟服务请求的响应偏差时长。In operation S310, the response deviation duration of the n-1th simulated service request is determined based on the first response duration and the preset response duration.
根据本公开的实施例,可以按照式(二)计算第n-1次模拟服务请求的响应偏差时长:
STn-1=ATn-1-TT                   (二)
According to the embodiment of the present disclosure, the response deviation duration of the n-1th simulated service request can be calculated according to Equation (2):
ST n-1 = AT n-1 - TT (2)
其中,STn-1表示第n-1次模拟服务请求的响应偏差时长;ATn-1表示第n-1次模拟服务请求的第一响应时长;TT表示预设响应时长。Among them, ST n-1 represents the response deviation time of the n-1th simulated service request; AT n-1 represents the first response time of the n-1 simulated service request; TT represents the preset response time.
根据本公开的实施例,例如:第n-1次模拟服务请求的第一响应时长可以为230ms,预设响应时长可以为200ms,则按照式(二)计算可以得到第n-1次模拟服务请求的响应偏差时长为30ms。According to the embodiment of the present disclosure, for example: the first response time of the n-1th simulated service request can be 230ms, and the preset response time can be 200ms, then the n-1th simulated service can be obtained by calculating according to Equation (2) The requested response deviation is 30ms.
在操作S320,根据响应偏差时长和第一待消耗时长,确定第二待消耗时长。In operation S320, a second time period to be consumed is determined based on the response deviation time period and the first time period to be consumed.
根据本公开的实施例,可以按照式(三)计算第n次模拟服务请求的第二待消耗时长:
RTn=STn-1+RTn-1                       (三)
According to an embodiment of the present disclosure, the second to-be-consumed duration of the n-th simulated service request can be calculated according to Equation (3):
RT n =ST n-1 +RT n-1 (3)
其中,RTn表示第n次模拟服务请求的第二待消耗时长;STn-1表示第n-1次模拟服务请求的响应偏差时长;RTn-1表示第n-1次模拟服务请求的第一待消耗时长。Among them, RT n represents the second waiting time of the n-th simulated service request; ST n-1 represents the response deviation time of the n-1 simulated service request; RT n-1 represents the response deviation time of the n-1 simulated service request. The first time to be consumed.
根据本公开的实施例,例如:第n-1次模拟服务请求的第一待消耗时长可以为10ms,则按照式(三)计算可以得到第n次模拟服务请求的第二待消耗时长为40ms。According to the embodiment of the present disclosure, for example: the first time period to be consumed for the n-1th simulated service request may be 10 ms, and then the second time period to be consumed for the n-th simulated service request can be calculated according to Equation (3) to be 40 ms. .
根据本公开的实施例,通过第n-1次模拟服务请求的响应偏差时长和第n-1次模 拟服务请求中,稳压组件未消耗的第一待消耗时长,确定可以用于第n次模拟服务请求消耗的待消耗时长,由于是利用第n-1次模拟服务请求的压测响应时长信息实时调控第n次模拟服务请求消耗的待消耗时长,可以实现不依赖于人工主观因素的调控,使得压测响应时长不断趋于稳定,进而提高压测精度。According to an embodiment of the present disclosure, through the response deviation duration of the n-1th simulated service request and the n-1th mode In the simulated service request, the first time to be consumed that is not consumed by the voltage stabilizing component is used to determine the time to be consumed that can be used for the nth simulated service request. This is because the pressure test response time information of the n-1th simulated service request is used. Real-time control of the waiting time consumed by the nth simulated service request can achieve control that does not rely on human subjective factors, so that the stress measurement response time continues to become stable, thereby improving the stress measurement accuracy.
根据本公开的实施例,根据第二待消耗时长和第一调节时长确定第二调节时长,包括:According to an embodiment of the present disclosure, determining the second adjustment duration based on the second to-be-consumed duration and the first adjustment duration includes:
在第二待消耗时长小于第一调节时长的情况下,将第一调节时长和第二待消耗时长之差确定为第二调节时长;When the second time period to be consumed is less than the first adjustment time period, the difference between the first adjustment time period and the second time period to be consumed is determined as the second adjustment time length;
在第二待消耗时长大于第一调节时长的情况下,确定第二调节时长为零。In the case where the second to-be-consumed duration is greater than the first adjustment duration, the second adjustment duration is determined to be zero.
根据本公开的实施例,在第二待消耗时长RTn小于第一调节时长LTn-1的情况下,可以按照式(四)确定第二调节时长LTn
LTn=LTn-1-RTn                  (四)
According to an embodiment of the present disclosure, when the second to-be-consumed time period RT n is less than the first adjustment time period LT n-1 , the second adjustment time period LT n can be determined according to Equation (4).
LT n =LT n-1 -RT n (4)
根据本公开的实施例,例如:第二待消耗时长为40ms,第一调节时长为60ms,可以确定第二调节时长为10ms。According to an embodiment of the present disclosure, for example, if the second time period to be consumed is 40 ms and the first adjustment time period is 60 ms, it may be determined that the second adjustment time period is 10 ms.
根据本公开的实施例,在第二待消耗时长大于第一调节时长的情况下,由于按照式(四)得到的第二调节时长小于0,可以将剩余时长应用于第n+1次模拟服务请求的响应时长的调节,则第n次模拟服务请求的调节时长为0。例如:第二待消耗时长为40ms,第一调节时长为30ms,可以确定第二调节时长为0,即对于第n次模拟服务请求,不需要利用稳压组件增加压测系统响应时长。According to embodiments of the present disclosure, when the second time period to be consumed is greater than the first adjustment time period, since the second adjustment time period obtained according to equation (4) is less than 0, the remaining time period can be applied to the n+1th simulation service To adjust the response time of the request, the adjustment time of the nth simulated service request is 0. For example: the second time to be consumed is 40ms, and the first adjustment time is 30ms. It can be determined that the second adjustment time is 0, that is, for the nth simulated service request, there is no need to use a voltage stabilizing component to increase the response time of the stress measurement system.
根据本公开的实施例,根据第二待消耗时长与第一调节时长,确定第二调节时长,由于是利用第n-1次模拟服务请求的压测响应时长信息实时确定是否需要稳压组件调节压测系统响应时长,可以实现不依赖于人工主观因素的调控,使得压测响应时长不断趋于稳定,进而提高压测。According to an embodiment of the present disclosure, the second adjustment duration is determined based on the second to-be-consumed duration and the first adjustment duration. This is because the pressure test response duration information of the n-1th simulated service request is used to determine in real time whether voltage stabilizing component adjustment is required. The response time of the pressure measurement system can be adjusted without relying on human subjective factors, so that the response time of the pressure measurement system becomes more stable, thereby improving pressure measurement.
根据本公开的实施例,上述调节压测系统响应时长的方法,还包括:According to an embodiment of the present disclosure, the method for adjusting the response duration of the pressure measurement system further includes:
根据第二待消耗时长和第一调节时长,确定第三待消耗时长,第三待消耗时长表征利用稳压组件消耗第二调节时长之后,稳压组件中记录的剩余时长。The third time period to be consumed is determined based on the second time period to be consumed and the first adjustment time period. The third time period to be consumed represents the remaining time recorded in the voltage stabilizing component after the second adjustment time period is consumed by the voltage stabilizing component.
根据本公开的实施例,可以根据第二待消耗时长RTn和第一调节时长LTn-1,确定第三待消耗时长。例如:当第二待消耗时长RTn小于第一调节时长LTn-1,此时,第二调节时长LTn为LTn-1-RTn,表示在第n次模拟服务请求中,利用稳压组件调节完压测系统响应时长之后,稳压组件中剩余的待消耗时长已被消耗完毕,则可以确定第三待消耗时 长为0。According to an embodiment of the present disclosure, the third to-be-consumed time period may be determined based on the second to-be-consumed time period RT n and the first adjustment time period LT n-1 . For example: when the second to-be-consumed time period RT n is less than the first adjustment time period LT n-1 , at this time, the second adjustment time period LT n is LT n-1 -RT n , which means that in the nth simulated service request, stable use of After the pressure component adjusts the response time of the pressure measurement system, the remaining time to be consumed in the voltage stabilizing component has been consumed, and the third time to be consumed can be determined. The length is 0.
根据本公开的实施例,通过实时更新稳压组件中记录的待消耗时长,自动调节针对第n+1次模拟服务请求,稳压组件中未消耗的待消耗时长,可以实现在不变更总体的模拟服务请求的响应时长的情况下,实时自动调节每一次模拟服务请求的压测系统响应时长,使其不断趋近于稳定,从而提高压测精度。According to embodiments of the present disclosure, by updating the time to be consumed recorded in the voltage stabilizing component in real time, and automatically adjusting the unconsumed time to be consumed in the voltage stabilizing component for the n+1th simulated service request, it is possible to achieve this without changing the overall In the case of simulating the response time of service requests, the response time of the stress measurement system for each simulated service request is automatically adjusted in real time to make it continuously approach stability, thereby improving the stress measurement accuracy.
根据本公开的实施例,根据第二待消耗时长和第一调节时长,确定第三待消耗时长,包括:According to an embodiment of the present disclosure, determining the third time period to be consumed based on the second time period to be consumed and the first adjustment time period includes:
在第二待消耗时长小于第一调节时长的情况下,确定第三待消耗时长为零;When the second time period to be consumed is less than the first adjustment time period, it is determined that the third time period to be consumed is zero;
在第二待消耗时长大于第一调节时长的情况下,将第二待消耗时长和第一调节时长之差确定为第三待消耗时长。When the second time period to be consumed is greater than the first adjustment time period, the difference between the second time period to be consumed and the first adjustment time period is determined as the third time period to be consumed.
根据本公开的实施例,例如:第二待消耗时长为30ms,第一调节时长为40ms,按照式(四)可以确定第二调节时长为10ms,则表示此时,稳压组件中的剩余时长为0,及可以确定第三待消耗时长为零。According to the embodiment of the present disclosure, for example: the second time period to be consumed is 30ms, and the first adjustment time period is 40ms. According to Equation (4), it can be determined that the second adjustment time period is 10ms, which means that at this time, the remaining time period in the voltage stabilizing component is 0, and it can be determined that the third time period to be consumed is zero.
根据本公开的实施例,在第二待消耗时长RTn大于第一调节时长LTn-1的情况下,可以按照式(五)计算第三待消耗时长RTn*
RTn*=RTn-LTn-1                      (五)
According to an embodiment of the present disclosure, when the second time period to be consumed RT n is greater than the first adjustment time period LT n-1 , the third time period to be consumed RT n* can be calculated according to Equation (5).
RT n* =RT n -LT n-1 (five)
其中,RTn*表示第三待消耗时长;RTn表示第二待消耗时长;LTn-1表示第一调节时长。Among them, RT n* represents the third time period to be consumed; RT n represents the second time period to be consumed; LT n-1 represents the first adjustment time period.
根据本公开的实施例,通过实时更新稳压组件中记录的待消耗时长,自动调节针对第n+1次模拟服务请求,稳压组件中未消耗的待消耗时长,可以实现在不变更总体的模拟服务请求的响应时长的情况下,实时自动调节每一次模拟服务请求的压测系统响应时长,使其不断趋近于稳定,从而提高压测精度。According to embodiments of the present disclosure, by updating the time to be consumed recorded in the voltage stabilizing component in real time, and automatically adjusting the unconsumed time to be consumed in the voltage stabilizing component for the n+1th simulated service request, it is possible to achieve this without changing the overall In the case of simulating the response time of service requests, the response time of the stress measurement system for each simulated service request is automatically adjusted in real time to make it continuously approach stability, thereby improving the stress measurement accuracy.
根据本公开的实施例,上述调节压测系统响应时长的方法,还包括:将第三待消耗时长和第二调节时长,覆盖写入存储器中,用于执行第n+1次模拟服务请求的响应时间的调节操作。According to an embodiment of the present disclosure, the above-mentioned method for adjusting the response duration of the stress testing system further includes: overwriting and writing the third to-be-consumed duration and the second adjustment duration into the memory for executing the n+1th simulated service request. Response time adjustment operation.
根据本公开的实施例,为了在利用稳压组件调节压测系统响应时长的过程中,不影响压测系统本身的实际响应时长,本公开实施例中采用Java中的map存储,用于存储每一次模拟服务请求的调节时长和稳压组件中未消耗的时长,也可以称之为剩余时长。According to the embodiment of the present disclosure, in order to use the voltage stabilizing component to adjust the response time of the pressure measurement system without affecting the actual response time of the pressure measurement system itself, the map storage in Java is used in the embodiment of the present disclosure to store each The adjustment time of a simulated service request and the unconsumed time in the voltage stabilizing component can also be called the remaining time.
根据本公开的实施例,由于Java中的map存储的特性,需要将每一次更新后的待消耗时长和调节时长覆盖写入map存储中,在执行调节操作时,再从存储器中获取相应 的待消耗时长和调节时长。According to the embodiment of the present disclosure, due to the characteristics of map storage in Java, it is necessary to overwrite and write the time to be consumed and the adjustment time after each update into the map storage, and then obtain the corresponding time from the memory when performing the adjustment operation. The time to be consumed and the time to adjust.
根据本公开的实施例,例如:响应于第n次模拟服务请求,从map存储中获取第一待消耗时长RTn-1,然后根据本公开实施例中式(一)计算得到的RTn先覆盖写入待消耗时长的map存储中,再从map存储中获取RTn,用于确定第二调节时长LTn。然后第二调节时长LTn再覆盖写入调节时长的map存储中,将调节时长的map存储中的调节时长更新为第n次模拟服务请求的调节时长,以便于第n+1次模拟服务请求按照本公开实施例的方法从调节时长的map存储中获取。According to an embodiment of the present disclosure, for example: in response to the nth simulated service request, the first to-be-consumed duration RT n-1 is obtained from the map storage, and then RT n calculated according to equation (1) in the embodiment of the present disclosure is first overwritten Write the duration to be consumed into the map storage, and then obtain RT n from the map storage, which is used to determine the second adjustment duration LT n . Then the second adjustment duration LT n overwrites the map storage of the adjustment duration, and updates the adjustment duration in the map storage of the adjustment duration to the adjustment duration of the nth simulated service request, so as to facilitate the n+1th simulated service request. According to the method of the embodiment of the present disclosure, it is obtained from the map storage of the adjusted duration.
根据本公开的实施例,将第三待消耗时长和第二调节时长,覆盖写入存储器,使得第n次模拟服务请求利用第n-1模拟服务请求调节信息,确定第n次模拟服务请求的压测系统响应时长的调节情况,实现自动调控、精准压测的目的。According to an embodiment of the present disclosure, the third to-be-consumed duration and the second adjustment duration are overwritten and written into the memory, so that the n-th simulated service request uses the n-1th simulated service request adjustment information to determine the n-th simulated service request. The adjustment of the response time of the pressure measurement system achieves the purpose of automatic regulation and accurate pressure measurement.
根据本公开的实施例,利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长,包括:According to an embodiment of the present disclosure, the voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration, including:
响应于第n次模拟服务请求,记录请求开始时刻信息;In response to the nth simulated service request, record the request start time information;
在第n次模拟服务请求的响应结束的情况下,利用稳压组件消耗第二调节时长;When the response to the nth simulated service request ends, use the voltage stabilizing component to consume the second adjustment time;
根据压测开始时刻和第二调节时长,确定请求结束时刻信息;Determine the request end time information based on the stress test start time and the second adjustment duration;
根据压测开始时刻信息和压测结束时刻信息,确定调节后的第n次模拟服务请求的响应时长。Based on the stress test start time information and the stress test end time information, determine the adjusted response time for the nth simulated service request.
根据本公开的实施例,例如:响应于第n次模拟服务请求,记录请求开始时刻信息ST1。请求开始时刻信息可以为压测系统记录的请求开始的具体时间。According to an embodiment of the present disclosure, for example, in response to the nth simulation service request, the request start time information ST1 is recorded. The request start time information may be the specific time when the request started recorded by the stress testing system.
根据本公开的实施例,例如:压测系统响应第n次模拟服务请求的结束时刻为ST2,根据本公开的实施例提供的调节压测系统响应时长的方法,确定第二调节时长为LTn,可以在结束时刻ST2的基础上延长LTn时长。According to an embodiment of the present disclosure, for example: the end time of the pressure measurement system's response to the nth simulation service request is ST2. According to the method for adjusting the response time of the pressure measurement system provided by the embodiment of the present disclosure, it is determined that the second adjustment time is LT n , the duration LT n can be extended based on the end time ST2.
根据本公开的实施例,例如:LTn可以为10ms,则可以确定请求结束时刻信息ST3为在结束时刻ST2的基础上再延长10ms所得到的时刻信息。According to an embodiment of the present disclosure, for example, LT n may be 10 ms, and the request end time information ST3 may be determined to be time information obtained by extending the end time ST2 by 10 ms.
根据本公开的实施例,调节后的第n次模拟服务请求的响应时长可以为利用稳压组件调节得到的请求结束时刻ST3与请求开始时刻ST1的差值。According to an embodiment of the present disclosure, the adjusted response time of the nth simulated service request may be the difference between the request end time ST3 and the request start time ST1 adjusted by using the voltage stabilizing component.
根据本公开的实施例,通过记录请求开始时刻和请求结束的时刻,确定利用稳压组件调节之后的第n次模拟服务请求的压测系统响应时长,以便于计算第n次模拟服务请求的压测系统响应时长与预设响应时长的偏差时长,确定第n+1次模拟服务请求需要调节的时长,如此循环,使得响应时长不断收敛于预设的响应时长,即趋于一个稳定值, 从而实现精准流量的压测。According to an embodiment of the present disclosure, by recording the request start time and the request end time, the response time of the stress testing system for the nth simulated service request after adjustment using the voltage stabilizing component is determined, so as to calculate the pressure of the nth simulated service request. Measure the deviation between the system response time and the preset response time, and determine the time that needs to be adjusted for the n+1th simulated service request. This cycle makes the response time continue to converge to the preset response time, that is, it tends to a stable value. This enables accurate flow pressure measurement.
图4示意性示出了根据本公开实施例的调节压测系统响应时长方法的逻辑框图。Figure 4 schematically shows a logic block diagram of a method for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure.
如图4所示,该实施例包括操作S401~S408As shown in Figure 4, this embodiment includes operations S401 to S408
在操作S401,响应于第n次模拟服务请求,从存储器中获取第n-1次模拟服务请求的响应信息,其中,响应信息中包括第一响应时长和调节信息,调节信息包括在压测系统响应第n-1次模拟服务请求的过程中,利用稳压组件消耗的第一调节时长和稳压组件未消耗的第一待消耗时长,其中,n为大于2的正整数;In operation S401, in response to the nth simulated service request, the response information of the n-1th simulated service request is obtained from the memory, where the response information includes the first response duration and adjustment information, and the adjustment information is included in the stress testing system In the process of responding to the n-1th simulated service request, the first adjustment time period consumed by the voltage stabilizing component and the first to-be-consumed time period not consumed by the voltage stabilizing component are used, where n is a positive integer greater than 2;
在操作S402,根据第一响应时长、预设响应时长和第一待消耗时长,确定第二待消耗时长,预设响应时长表征压测系统针对模拟服务请求的期望响应时长,预设响应时长大于n-1次模拟服务请求的平均响应时长;In operation S402, a second time period to be consumed is determined based on the first response time, the preset response time and the first time to be consumed. The preset response time represents the expected response time of the stress testing system for the simulated service request, and the preset response time is greater than The average response time of n-1 simulated service requests;
在操作S403,确定第二待消耗时长是否小于第一调节时长,若是,则执行S404,若不是,则执行S406。In operation S403, it is determined whether the second to-be-consumed duration is less than the first adjustment duration. If so, S404 is executed. If not, S406 is executed.
在操作S404,将第一调节时长和第二待消耗时长之差确定为第二调节时长,确定第三待消耗时长为零。In operation S404, the difference between the first adjustment duration and the second to-be-consumed duration is determined as the second adjustment duration, and the third to-be-consumed duration is determined to be zero.
在操作S405,将操作S404确定的第二调节时长、第三待消耗时长分别覆盖写入调节时长存储器、待消耗时长存储器中。In operation S405, the second adjustment duration and the third to-be-consumed duration determined in operation S404 are overwritten and written into the adjustment duration memory and the to-be-consumed duration memory respectively.
在操作S406,确定第二调节时长为零,将第二待消耗时长和第一调节时长之差确定为第三待消耗时长。In operation S406, the second adjustment duration is determined to be zero, and the difference between the second to-be-consumed duration and the first adjustment duration is determined to be the third to-be-consumed duration.
在操作S407,将操作S406确定的第二调节时长、第三待消耗时长分别覆盖写入调节时长存储器、待消耗时长存储器中。In operation S407, the second adjustment duration and the third to-be-consumed duration determined in operation S406 are overwritten and written into the adjustment duration memory and the to-be-consumed duration memory respectively.
在操作S408,利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长。In operation S408, the voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration.
基于上述调节压测系统响应时长的方法,本公开还提供了一种调节压测系统响应时长的装置。以下将结合图5对该装置进行详细描述。Based on the above method of adjusting the response time of the pressure measurement system, the present disclosure also provides a device for adjusting the response time of the pressure measurement system. The device will be described in detail below with reference to FIG. 5 .
图5示意性示出了根据本公开实施例的调节压测系统响应时长的装置的结构框图。FIG. 5 schematically shows a structural block diagram of a device for adjusting the response duration of a pressure measurement system according to an embodiment of the present disclosure.
如图5所示,该实施例的调节压测系统响应时长的装置500包括获取模块510、第一确定模块520、第二确定模块530、调节模块540。As shown in FIG. 5 , the device 500 for adjusting the response duration of the pressure measurement system in this embodiment includes an acquisition module 510 , a first determination module 520 , a second determination module 530 , and an adjustment module 540 .
获取模块510用于获取模块,用于响应于第n次模拟服务请求,从存储器中获取第n-1次模拟服务请求的响应信息,其中,响应信息中包括第一响应时长和调节信息,调节信息包括在压测系统响应第n-1次模拟服务请求的过程中,利用稳压组件消耗的第 一调节时长和稳压组件未消耗的第一待消耗时长,其中,n为大于2的正整数。在一实施例中,获取模块510可以用于执行前文描述的操作S210,在此不再赘述。The acquisition module 510 is used to acquire the response information of the n-1th simulation service request from the memory in response to the nth simulation service request, where the response information includes the first response duration and adjustment information, and the adjustment information The information includes the consumption of the voltage stabilizing component during the process of the pressure measurement system responding to the n-1 simulated service request. An adjustment period and the first period of time to be consumed when the voltage stabilizing component is not consumed, where n is a positive integer greater than 2. In an embodiment, the acquisition module 510 may be used to perform the operation S210 described above, which will not be described again here.
第一确定模块520用于根据第一响应时长、预设响应时长和第一待消耗时长,确定第二待消耗时长,预设响应时长表征每一次模拟服务请求的期望响应时长,预设响应时长大于n次模拟服务请求的平均响应时长。在一实施例中,第一确定模块520可以用于执行前文描述的操作S220,在此不再赘述。The first determination module 520 is configured to determine the second time period to be consumed based on the first response time length, the preset response time length and the first time period to be consumed. The preset response time length represents the expected response time length of each simulated service request. The preset response time length The average response time is greater than n simulated service requests. In an embodiment, the first determination module 520 may be configured to perform the operation S220 described above, which will not be described again here.
第二确定模块530用于根据第二待消耗时长和第一调节时长确定第二调节时长。在一实施例中,第二确定模块530可以用于执行前文描述的操作S230,在此不再赘述。The second determination module 530 is configured to determine the second adjustment duration according to the second to-be-consumed duration and the first adjustment duration. In an embodiment, the second determination module 530 may be configured to perform the operation S230 described above, which will not be described again here.
调节模块540用于利用稳压组件,根据第二调节时长调节第n次模拟服务请求的响应时长。在一实施例中,调节模块540可以用于执行前文描述的操作S240,在此不再赘述。The adjustment module 540 is configured to use a voltage stabilizing component to adjust the response duration of the nth simulated service request according to the second adjustment duration. In an embodiment, the adjustment module 540 may be configured to perform the operation S240 described above, which will not be described again here.
根据本公开的实施例,第一确定模块包括第一确定单元和第二确定单元。其中,第一确定单元,用于根据第一响应时长、预设响应时长,确定第n-1次模拟服务请求的响应偏差时长。第二确定单元,用于根据响应偏差时长和第一待消耗时长,确定第二待消耗时长。According to an embodiment of the present disclosure, the first determination module includes a first determination unit and a second determination unit. Wherein, the first determining unit is used to determine the response deviation duration of the n-1th simulated service request based on the first response duration and the preset response duration. The second determination unit is configured to determine the second time period to be consumed based on the response deviation time period and the first time period to be consumed.
根据本公开的实施例,第二确定模块包括第三确定单元和第四确定单元。其中,第三确定单元,用于在第二待消耗时长小于第一调节时长的情况下,将第一调节时长和第二待消耗时长之差确定为第二调节时长。第四确定单元,用于在第二待消耗时长大于第一调节时长的情况下,确定第二调节时长为零。According to an embodiment of the present disclosure, the second determination module includes a third determination unit and a fourth determination unit. Wherein, the third determining unit is configured to determine the difference between the first adjustment time period and the second time period to be consumed as the second adjustment time period when the second time period to be consumed is less than the first adjustment time period. The fourth determination unit is configured to determine that the second adjustment duration is zero when the second to-be-consumed duration is greater than the first adjustment duration.
根据本公开的实施例,上述调节压测系统响应时长的装置还包括第三确定模块,用于根据第二待消耗时长和第一调节时长,确定第三待消耗时长,第三待消耗时长表征利用稳压组件消耗第二调节时长之后,稳压组件中记录的剩余时长。According to an embodiment of the present disclosure, the device for adjusting the response time of the pressure measurement system further includes a third determination module for determining the third time to be consumed based on the second time to be consumed and the first adjustment time, and the third time to be consumed represents the After the voltage stabilizing component consumes the second adjustment duration, the remaining time recorded in the voltage stabilizing component is used.
根据本公开的实施例,第三确定模块包括第五确定单元和第六确定单元。其中,第五确定单元,用于在第二待消耗时长小于第一调节时长的情况下,确定第三待消耗时长为零。第六确定单元,用于在第二待消耗时长大于第一调节时长的情况下,将第二待消耗时长和第一调节时长之差确定为第三待消耗时长。According to an embodiment of the present disclosure, the third determination module includes a fifth determination unit and a sixth determination unit. Wherein, the fifth determination unit is configured to determine that the third time period to be consumed is zero when the second time period to be consumed is less than the first adjustment time period. The sixth determination unit is configured to determine the difference between the second time period to be consumed and the first adjustment time period as the third time period to be consumed when the second time period to be consumed is greater than the first adjustment time period.
根据本公开的实施例,上述调节压测系统响应时长的装置还包括存储模块,用于将第三待消耗时长和第二调节时长,覆盖写入存储器中,用于执行第n+1次模拟服务请求的响应时间的调节操作。According to an embodiment of the present disclosure, the above-mentioned device for adjusting the response duration of the pressure measurement system further includes a storage module for overwriting and writing the third to-be-consumed duration and the second adjustment duration into the memory for performing the n+1th simulation. Adjustment of response times for service requests.
根据本公开的实施例,调节模块包括记录单元、消耗单元、第七确定单元和第八确 定单元。其中,记录单元,用于响应于第n次模拟服务请求,记录请求开始时刻信息。消耗单元,用于在第n次模拟服务请求的响应结束的情况下,利用稳压组件消耗第二调节时长。第七确定单元,用于根据压测开始时刻和第二调节时长,确定请求结束时刻信息。第八确定单元,用于根据压测开始时刻信息和压测结束时刻信息,确定调节后的第n次模拟服务请求的响应时长。According to an embodiment of the present disclosure, the adjustment module includes a recording unit, a consumption unit, a seventh determination unit and an eighth determination unit. fixed unit. The recording unit is used to record the request start time information in response to the nth simulated service request. The consumption unit is configured to use the voltage stabilizing component to consume the second adjustment duration when the response to the nth simulated service request ends. The seventh determination unit is used to determine the request end time information based on the pressure test start time and the second adjustment duration. The eighth determination unit is used to determine the adjusted response time of the nth simulated service request based on the stress test start time information and the stress test end time information.
根据本公开的实施例的模块、单元中的任意多个、或其中任意多个的至少部分功能可以在一个模块中实现。根据本公开实施例的模块、单元中的任意一个或多个可以被拆分成多个模块来实现。根据本公开实施例的模块、单元中的任意一个或多个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式的硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,根据本公开实施例的模块、单元中的一个或多个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。Any multiple of the modules, units, or at least part of the functions of any multiple of the modules according to the embodiments of the present disclosure may be implemented in one module. Any one or more of the modules and units according to the embodiments of the present disclosure can be split into multiple modules for implementation. Any one or more of the modules and units according to the embodiments of the present disclosure may be at least partially implemented as hardware circuits, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, or a circuit on a substrate. System, system-on-package, application-specific integrated circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner that integrates or packages circuits, or in any of the three implementations: software, hardware, or firmware or an appropriate combination of any of them. Alternatively, one or more of the modules and units according to the embodiments of the present disclosure may be at least partially implemented as a computer program module, and when the computer program module is executed, corresponding functions may be performed.
例如,获取模块510、第一确定模块520、第二确定模块530、调节模块540中的任意多个可以合并在一个模块/单元/子单元中实现,或者其中的任意一个模块/单元/子单元可以被拆分成多个模块/单元/子单元。或者,这些模块/单元/子单元中的一个或多个模块/单元/子单元的至少部分功能可以与其他模块/单元/子单元的至少部分功能相结合,并在一个模块/单元/子单元中实现。根据本公开的实施例,获取模块510、第一确定模块520、第二确定模块530、调节模块540中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,获取模块510、第一确定模块520、第二确定模块530、调节模块540中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。For example, any multiple of the acquisition module 510, the first determination module 520, the second determination module 530, and the adjustment module 540 can be combined and implemented in one module/unit/subunit, or any one module/unit/subunit among them. Can be split into multiple modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/subunits may be combined with at least part of the functionality of other modules/units/subunits and combined in one module/unit/subunit realized in. According to an embodiment of the present disclosure, at least one of the acquisition module 510, the first determination module 520, the second determination module 530, and the adjustment module 540 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), Implemented by hardware or firmware such as a programmable logic array (PLA), system on a chip, system on a substrate, system on a package, application specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, Or it can be implemented in any one of the three implementation methods of software, hardware and firmware, or in an appropriate combination of any of them. Alternatively, at least one of the acquisition module 510, the first determination module 520, the second determination module 530, and the adjustment module 540 can be at least partially implemented as a computer program module. When the computer program module is run, corresponding functions can be performed. .
图6示意性示出了根据本公开实施例的适于实现上文描述的方法的电子设备的框图。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Figure 6 schematically shows a block diagram of an electronic device suitable for implementing the above-described method according to an embodiment of the present disclosure. The electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图6所示,根据本公开实施例的电子设备600包括处理器601,其可以根据存储 在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。处理器601例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC)),等等。处理器601还可以包括用于缓存用途的板载存储器。处理器601可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in Figure 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can store The program in the read-only memory (ROM) 602 or the program loaded from the storage section 608 into the random access memory (RAM) 603 executes various appropriate actions and processes. Processor 601 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or associated chipset, and/or a special-purpose microprocessor (eg, an application specific integrated circuit (ASIC)), among others. Processor 601 may also include onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
在RAM 603中,存储有电子设备600操作所需的各种程序和数据。处理器601、ROM602以及RAM 603通过总线604彼此相连。处理器601通过执行ROM 602和/或RAM 603中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 602和RAM 603以外的一个或多个存储器中。处理器601也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the RAM 603, various programs and data required for the operation of the electronic device 600 are stored. The processor 601, ROM 602 and RAM 603 are connected to each other through a bus 604. The processor 601 performs various operations according to the method flow of the embodiment of the present disclosure by executing programs in the ROM 602 and/or RAM 603. It should be noted that the program may also be stored in one or more memories other than ROM 602 and RAM 603. The processor 601 may also perform various operations according to the method flow of embodiments of the present disclosure by executing programs stored in the one or more memories.
根据本公开的实施例,电子设备600还可以包括输入/输出(I/O)接口605,输入/输出(I/O)接口605也连接至总线604。系统600还可以包括连接至I/O接口605的以下部件中的一项或多项:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。According to embodiments of the present disclosure, the electronic device 600 may further include an input/output (I/O) interface 605 that is also connected to the bus 604 . System 600 may also include one or more of the following components connected to I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; including a cathode ray tube (CRT), liquid crystal display (LCD), etc.; and a speaker. an output section 607, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. Driver 610 is also connected to I/O interface 605 as needed. Removable media 611, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
根据本公开的实施例,根据本公开实施例的方法流程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读存储介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被处理器601执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。According to embodiments of the present disclosure, the method flow according to the embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611. When the computer program is executed by the processor 601, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to embodiments of the present disclosure, the systems, devices, devices, modules, units, etc. described above may be implemented by computer program modules.
本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序 被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/device/system described in the above embodiments; it may also exist independently without being assembled into the device/system. in the device/system. The above computer-readable storage medium carries one or more programs. When the above one or more programs When executed, methods according to embodiments of the present disclosure are implemented.
根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质。例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM 602和/或RAM 603和/或ROM 602和RAM 603以外的一个或多个存储器。For example, according to embodiments of the present disclosure, the computer-readable storage medium may include one or more memories other than ROM 602 and/or RAM 603 and/or ROM 602 and RAM 603 described above.
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.
本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。Those skilled in the art will understand that features recited in various embodiments and/or claims of the present disclosure may be combined and/or combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, various combinations and/or combinations of features recited in the various embodiments and/or claims of the disclosure may be made without departing from the spirit and teachings of the disclosure. All such combinations and/or combinations fall within the scope of this disclosure.
以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。 The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment is described separately above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.

Claims (11)

  1. 一种调节压测系统响应时长的方法,包括:A method for adjusting the response time of the pressure measurement system, including:
    响应于第n次模拟服务请求,从存储器中获取第n-1次模拟服务请求的响应信息,其中,所述响应信息中包括第一响应时长和调节信息,所述调节信息包括在压测系统响应所述第n-1次模拟服务请求的过程中,利用稳压组件消耗的第一调节时长和所述稳压组件未消耗的第一待消耗时长,其中,n为大于2的正整数;In response to the nth simulated service request, obtain the response information of the n-1th simulated service request from the memory, where the response information includes the first response duration and adjustment information, and the adjustment information is included in the stress testing system In the process of responding to the n-1th simulation service request, the first adjustment time period consumed by the voltage stabilizing component and the first to-be-consumed time period not consumed by the voltage stabilizing component are utilized, where n is a positive integer greater than 2;
    根据所述第一响应时长、预设响应时长和所述第一待消耗时长,确定第二待消耗时长,所述预设响应时长表征所述压测系统针对所述模拟服务请求的期望响应时长,所述预设响应时长大于n-1次模拟服务请求的平均响应时长;Determine a second response time to be consumed based on the first response time, the preset response time and the first time to be consumed. The preset response time represents the expected response time of the stress testing system for the simulated service request. , the preset response time is greater than the average response time of n-1 simulated service requests;
    根据所述第二待消耗时长和所述第一调节时长确定第二调节时长;Determine a second adjustment duration according to the second to-be-consumed duration and the first adjustment duration;
    利用所述稳压组件,根据所述第二调节时长调节所述第n次模拟服务请求的响应时长。The voltage stabilizing component is used to adjust the response duration of the nth simulated service request according to the second adjustment duration.
  2. 根据权利要求1所述的方法,其中,所述根据所述第一响应时长、预设响应时长和所述第一待消耗时长,确定第二待消耗时长,包括:The method according to claim 1, wherein determining the second to-be-consumed duration based on the first response duration, the preset response duration and the first to-be-consumed duration includes:
    根据所述第一响应时长、预设响应时长,确定第n-1次模拟服务请求的响应偏差时长;Determine the response deviation duration of the n-1th simulated service request based on the first response duration and the preset response duration;
    根据所述响应偏差时长和所述第一待消耗时长,确定所述第二待消耗时长。The second time period to be consumed is determined based on the response deviation time period and the first time period to be consumed.
  3. 根据权利要求1所述的方法,其中,所述根据所述第二待消耗时长和所述第一调节时长确定第二调节时长,包括:The method according to claim 1, wherein determining the second adjustment duration according to the second to-be-consumed duration and the first adjustment duration includes:
    在所述第二待消耗时长小于所述第一调节时长的情况下,将所述第一调节时长和所述第二待消耗时长之差确定为所述第二调节时长;When the second time period to be consumed is less than the first adjustment time period, the difference between the first adjustment time period and the second time period to be consumed is determined as the second adjustment time length;
    在所述第二待消耗时长大于所述第一调节时长的情况下,确定所述第二调节时长为零。When the second to-be-consumed duration is greater than the first adjustment duration, the second adjustment duration is determined to be zero.
  4. 根据权利要求3所述的方法,还包括:The method of claim 3, further comprising:
    根据所述第二待消耗时长和所述第一调节时长,确定第三待消耗时长,所述第三待消耗时长表征利用稳压组件消耗所述第二调节时长之后,所述稳压组件中记录的剩余时长。 According to the second time period to be consumed and the first adjustment time period, a third time period to be consumed is determined. The third time period to be consumed represents the amount of time in the voltage stabilizing component after the second adjustment time period is consumed by the voltage stabilizing component. The remaining duration of the recording.
  5. 根据权利要求4所述的方法,其中,所述根据所述第二待消耗时长和所述第一调节时长,确定第三待消耗时长,包括:The method according to claim 4, wherein determining the third to-be-consumed time period based on the second to-be-consumed time period and the first adjustment time period includes:
    在所述第二待消耗时长小于所述第一调节时长的情况下,确定所述第三待消耗时长为零;When the second time period to be consumed is less than the first adjustment time period, it is determined that the third time period to be consumed is zero;
    在所述第二待消耗时长大于所述第一调节时长的情况下,将所述第二待消耗时长和所述第一调节时长之差确定为所述第三待消耗时长。When the second time period to be consumed is greater than the first adjustment time period, the difference between the second time period to be consumed and the first adjustment time period is determined as the third time period to be consumed.
  6. 根据权利要求5所述的方法,还包括:The method of claim 5, further comprising:
    将所述第三待消耗时长和所述第二调节时长,覆盖写入所述存储器中,用于执行第n+1次模拟服务请求的响应时间的调节操作。The third to-be-consumed duration and the second adjustment duration are overwritten and written into the memory for performing an adjustment operation of the response time of the (n+1)th simulated service request.
  7. 根据权利要求1所述的方法,其中,所述利用所述稳压组件,根据所述第二调节时长调节所述第n次模拟服务请求的响应时长,包括:The method according to claim 1, wherein using the voltage stabilizing component to adjust the response duration of the nth simulated service request according to the second adjustment duration includes:
    响应于所述第n次模拟服务请求,记录请求开始时刻信息;In response to the nth simulated service request, record the request start time information;
    在所述第n次模拟服务请求的响应结束的情况下,利用所述稳压组件消耗所述第二调节时长;When the response to the nth simulated service request ends, use the voltage stabilizing component to consume the second adjustment duration;
    根据所述压测开始时刻和所述第二调节时长,确定请求结束时刻信息;Determine the request end time information based on the stress test start time and the second adjustment duration;
    根据所述压测开始时刻信息和所述压测结束时刻信息,确定调节后的所述第n次模拟服务请求的响应时长。According to the stress test start time information and the stress test end time information, the adjusted response time of the nth simulated service request is determined.
  8. 一种调节压测系统响应时长的装置,包括:A device for adjusting the response time of the pressure measurement system, including:
    获取模块,用于响应于第n次模拟服务请求,从存储器中获取第n-1次模拟服务请求的响应信息,其中,所述响应信息中包括第一响应时长和调节信息,所述调节信息包括在压测系统响应所述第n-1次模拟服务请求的过程中,利用稳压组件消耗的第一调节时长和所述稳压组件未消耗的第一待消耗时长,其中,n为大于2的正整数;An acquisition module, configured to obtain the response information of the n-1th simulation service request from the memory in response to the nth simulation service request, wherein the response information includes the first response duration and adjustment information, and the adjustment information This includes utilizing the first adjustment time period consumed by the voltage stabilizing component and the first to-be-consumed time period that is not consumed by the voltage stabilizing component during the process of the pressure measurement system responding to the n-1th simulation service request, where n is greater than A positive integer of 2;
    第一确定模块,用于根据所述第一响应时长、预设响应时长和所述第一待消耗时长,确定第二待消耗时长,所述预设响应时长表征每一次模拟服务请求的期望响应时长,所述预设响应时长大于n次模拟服务请求的平均响应时长;A first determination module configured to determine a second duration to be consumed based on the first response duration, the preset response duration and the first duration to be consumed, where the preset response duration represents the expected response of each simulated service request Duration, the preset response duration is greater than the average response duration of n simulated service requests;
    第二确定模块,用于根据所述第二待消耗时长和所述第一调节时长确定第二调节时长; a second determination module, configured to determine a second adjustment duration based on the second to-be-consumed duration and the first adjustment duration;
    调节模块,用于利用所述稳压组件,根据所述第二调节时长调节所述第n次模拟服务请求的响应时长。An adjustment module, configured to use the voltage stabilizing component to adjust the response duration of the nth simulated service request according to the second adjustment duration.
  9. 一种电子设备,包括:An electronic device including:
    一个或多个处理器;one or more processors;
    存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
    其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行根据权利要求1~7中任一项所述的方法。Wherein, when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method according to any one of claims 1 to 7.
  10. 一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行根据权利要求1~7中任一项所述的方法。A computer-readable storage medium on which executable instructions are stored, which when executed by a processor causes the processor to execute the method according to any one of claims 1 to 7.
  11. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现根据权利要求1~7中任一项所述的方法。 A computer program product includes a computer program that implements the method according to any one of claims 1 to 7 when executed by a processor.
PCT/CN2023/091088 2022-08-23 2023-04-27 Method and apparatus for adjusting response duration of stress test system, and device and medium WO2024041018A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211015694.7 2022-08-23
CN202211015694.7A CN117667614A (en) 2022-08-23 2022-08-23 Method, device, equipment and medium for adjusting response time of pressure measurement system

Publications (1)

Publication Number Publication Date
WO2024041018A1 true WO2024041018A1 (en) 2024-02-29

Family

ID=90012306

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/091088 WO2024041018A1 (en) 2022-08-23 2023-04-27 Method and apparatus for adjusting response duration of stress test system, and device and medium

Country Status (2)

Country Link
CN (1) CN117667614A (en)
WO (1) WO2024041018A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020082585A1 (en) * 2018-10-25 2020-04-30 深圳壹账通智能科技有限公司 Method and device for interface testing
CN111858200A (en) * 2020-06-22 2020-10-30 银清科技有限公司 Throughput control method and device in system test and electronic equipment
CN112134754A (en) * 2020-09-18 2020-12-25 中移(杭州)信息技术有限公司 Pressure testing method and device, network equipment and storage medium
CN114186699A (en) * 2021-11-02 2022-03-15 深圳追一科技有限公司 Quality inspection node optimization method and device, computer equipment and storage medium
CN114490290A (en) * 2022-01-21 2022-05-13 杭州笨马网络技术有限公司 Method and system for improving pressure testing efficiency

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020082585A1 (en) * 2018-10-25 2020-04-30 深圳壹账通智能科技有限公司 Method and device for interface testing
CN111858200A (en) * 2020-06-22 2020-10-30 银清科技有限公司 Throughput control method and device in system test and electronic equipment
CN112134754A (en) * 2020-09-18 2020-12-25 中移(杭州)信息技术有限公司 Pressure testing method and device, network equipment and storage medium
CN114186699A (en) * 2021-11-02 2022-03-15 深圳追一科技有限公司 Quality inspection node optimization method and device, computer equipment and storage medium
CN114490290A (en) * 2022-01-21 2022-05-13 杭州笨马网络技术有限公司 Method and system for improving pressure testing efficiency

Also Published As

Publication number Publication date
CN117667614A (en) 2024-03-08

Similar Documents

Publication Publication Date Title
US10469979B2 (en) Managing data access in mobile devices
US10936465B2 (en) Method for optimized canary deployments for improved customer experience
US8745164B2 (en) Method and system to detect a cached web page
US20090138219A1 (en) Estimating power consumption of computing components configured in a computing system
WO2015180601A1 (en) Method and device for starting operation of webapp and generating mirror image file
CN112799940B (en) Regression testing method, regression testing device, computer system and computer readable storage medium
US20150100738A1 (en) Dynamically determining a translation lookaside buffer flush promotion threshold value
US20170312630A1 (en) Fragment-based mobile device application streaming utilizing crowd-sourcing
CN110766185A (en) User quantity determination method and system, and computer system
US20140136664A1 (en) Resource based mobile device application streaming
WO2017206893A1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
US11150998B2 (en) Redefining backup SLOs for effective restore
WO2024041018A1 (en) Method and apparatus for adjusting response duration of stress test system, and device and medium
CN111783005B (en) Method, device and system for displaying web page, computer system and medium
WO2024078070A1 (en) Data collection resource quantity control method and apparatus, and device and storage medium
CN110096295B (en) Multi-module mobile application thermal updating method and system based on reactivating
CN109597724B (en) Service stability measuring method, device, computer equipment and storage medium
US9430007B2 (en) Voltage regulator stress reducing system
CN115086194B (en) Cloud application data transmission method, computing device and computer storage medium
CN115576791A (en) Dynamic adjustment method and device for pressure measurement thread, electronic equipment and storage medium
US8892693B2 (en) Enabling fragment-based mobile device application streaming
CN113436003A (en) Duration determination method, duration determination device, electronic device, medium, and program product
US8819174B2 (en) Information processing system, information processing method, and storage medium
CN110866206B (en) Data update setting method and device
CN112883041A (en) Data updating method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23856112

Country of ref document: EP

Kind code of ref document: A1