Load profile is a set of operations and their intensity, chosen in such a way, that together they create a load comparable to the production load.
Load testing preparation is one of the most important steps in the load testing.
An incorrect load profile generates testing results that are not related to the production.
We recommend to begin the load testing preparation by considering the testing goals, such as:
and so forth.
Collecting Statistics
Time range
When choosing the time range for the analyzed statistics, you’ll need to include several productive load cycles to it – they will make it possible to determine the typical load. We recommend using the statistics for the period smaller than a month.
The time range should not be too big: if you’ll take the statistics for half a year, the final load profile will display the average load for the whole period, which is not correct when the load level is constantly rising. Apart from that, a big amount of data will make the analysis more difficult.
You’ll need to take into account that the load differs between the months: in December the load is normally higher, but in January and May there are many public holidays in Russia. Therefore the statistics for these months may not be as informative. In this case we recommend to compare it to the statistics for the next and previous months to evaluate the deviation. Alternatively, it’s possible to enlarge the analyzed period.
Aggregation
Normally the operation intensity is aggregated every hour (in case that the intensity is more than 100 operations per hour)
Statistics Analysis
Days to choose for the load profiles
Most systems have got more and less loaded periods:
It’s necessary to determine days with the typical load for the desired load profile.
It is the set of days when the load is similar and as high as possible. The amount of selected days should be enough to form a typical load.
But when there are several such days and the system implies that in certain days the load is the highest – then the profile should be based on these days.
Internet rush-hour and the corresponding time range
For the chosen days we divide operations to average out the operation intensity for each hour.
The load profile base is the Internet rush hour – the hour, when the sum load for operation is maximal.
It’s necessary to evaluate the time range, when the relations between operations is similar to the rush hour. This period will be covered by the load profile. For the remainder of the time we need to create a separate load profile.
If the load profile is aimed to analyze certain operations, it’s recommended to make sure that the chosen days and hours have the maximal intensity in respect of the operations.
And the other way round, not very important operations that are highly intensive should be discarded.
Choosing operations to include in the load profile
Based on the operation intensity for the chosen rush hour we need to choose a set of operations to include in the load profile.
If it is known that the main load on the operations happens on certain days/hours, we advise to make sure that these hours are included in the analysis. One may create the load profile based on these hours.
Determining the operation intensity in the load profile
Determining the operation intensity in the load profile
As a result of the previous steps we’ve compiled a list of operations and the time range for system work that will be covered by the load profile. We include the highest intensity for each operation for the time range covered by the load profile to the final load profile. After that we evaluate how well the resulting profile covers the intensity of the rush hour. The allowed value is about 10%. In case the allowed value is overtaken, it’s required to correct the time range covered by the load profile.
It follows that the final profile emulates the highest possible load.
Batch and atomic operations
Some operations can be performed atomically, as well as sequentially. For example, in the banking domain after registering a client an account is created. The batch operations can form a load different from performing the operations atomically. In such a case we first determine the needed intensity for the batch operations from the composed profile and then give the rest of the intensity atomically.
Comparing the Load Profile to the Previous One
After creating the profile it’s advised to compare it to the previous profile if one is present.
The profiles are compared in the following way:
(it’s performed after taking the old load profile to the level of the new load profile: intensity of each operation from the old profile is multiplied to such a coefficient that the amount of the old profile operations equates to the amount of new profile operations.
The frequency of load profile update
The necessity to update the profile depends on changing load on the testing system. It’s recommended to update the load profile once in a quarter.
Related insights in blog articles
Why Load Testing Is Essential for Ecommerce Businesses
![why load testing is essential for ecommerce businesses preview](https://pflb.us/wp-content/uploads/2024/05/why-load-testing-is-essential-for-ecommerce-businesses-preview.png)
The success of 26 million online retailers depends on the page load time. It significantly impacts the profitability of online services and sales, as customers don’t want to wait over three seconds to make a purchase. To ensure the desired speed, load testing is widely applied. Common Ecommerce Problems That Can Be Solved with Load […]
Everything You Should Know about Performance Testing of Microservices
About 85% of enterprise businesses use microservices. In this article, we will cover the primary specifics of microservices, explain why they need performance testing, and highlight how to make this process efficient. Microservices in a Few Words Microservices (or microservices architecture) refers to a methodology for developing and deploying applications. This approach separates an extensive […]
PFLB is Now SOC2 Compliant
The PFLB team is happy to share the good news. We have passed the SOC 2 compliance accreditation. It means we can assure our clients that our cooperation will be entirely secure. What Is SOC? Introduced by the American Institute of CPAs (AICPA), SOC, or Service Organization Control, is a cybersecurity series of reports made […]
How Do Businesses Benefit from Frontend Performance Testing?
![how do businesses benefit from frontend performance testing preview](https://pflb.us/wp-content/uploads/2019/08/how-do-businesses-benefit-from-frontend-performance-testing-preview-1024x548.png)
Crucial bottlenecks are usually backend-related. That’s why backend performance testing is generally regarded as a must. However, only 1% of companies perform frontend performance testing. They don’t consider that to achieve the best business results, one should combine the two types. Let’s prove it. We will define their differences, emphasize the importance of conducting backend […]
Be the first one to know
We’ll send you a monthly e-mail with all the useful insights that we will have found and analyzed
People love to read
Explore the most popular articles we’ve written so far
- Android vs iOS App Performance Testing: What’s the Difference? Dec 9, 2022
- How to Save Money on Performance Testing? Dec 5, 2022
- Performance Testing: What It Is, and Why You Need It Oct 7, 2021
- Cloud-based Application Testing: Features & Types Apr 15, 2020