Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Rendezvous point: lr_rendezvous (& quot; rendezvous point name & quot;)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Rendezvous point: lr_rendezvous (rendezvous point name)

Achieve strict concurrency.

In the field of performance testing, two words are often heard: "strict concurrency" and "business concurrency".

Strict concurrency: implemented by technical means, multiple connections make requests at the same precise time

Business concurrency: simulates the most real business scenario and sends requests on the human perception at the same time

In order to achieve the strict concurrency of a special operation, it is necessary to add a "rendezvous point function" to the relevant location in the script.

For example, 10 virtual users log in at the same time, and before this operation, there are processes such as virtual user initialization, visiting the home page, etc., then there will be a certain sequence at the point in time when each user arrives at the login operation. If you add this rendezvous point function before logging in to the script for the operation, each user who arrives first will stop executing the following script and wait at the rendezvous point until all 10 virtual users arrive at the rendezvous point. At the same time, execute the scripts below the rendezvous point function to achieve strict concurrency behavior.

The function corresponding to the collection point is: lr_rendezvous ("rendezvous point name")

How to insert a rendezvous point: right-click on the relevant location, Insert > Rendezvous, and enter the name of the rendezvous point, as shown in the figure:

Under non-specific requirements, it is recommended not to use set points for strict concurrency when simulating real stress scenarios. Mainly to simulate the real business scenario model.

After all, at a certain precise time, all users perform a certain operation at the same time, such a business model rarely exists in real use, so there is a certain deviation in our test results. Whether and how to use this rendezvous point depends on confirming the real business scenario with the demand side as much as possible before the performance test.

Sometimes we can add random thinking time after the rendezvous point function to weaken the accuracy of strict concurrency in varying degrees to meet our test closer to the real situation. As for the study of "random thinking time", we will learn together when we explain about random functions later.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report