Creation of the Load Testing Profile
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:
- determining the maximal production load – you’ll need to prepare the load profile that maximally loads the system.
- evaluating how certain processes influence the system – it’ll be needed to prepare a load profile for the period, when the processes are running on production; their influence is tracked not the whole system, but to the operations that communicate to the inspected processes.
- determining the operations that will be most difficult to optimize later – first the operations-candidates need to be considered, then one needs to prepare one or more load profiles to audit them.
and so forth.
Table of Contents
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.
Normally the operation intensity is aggregated every hour (in case that the intensity is more than 100 operations per hour)
Days to choose for the load profiles
Most systems have got more and less loaded periods:
- day and night
- weekdays and weekend
- days of the week (on Monday the load is often higher than on Friday)
- the load can be performed on certain days of the month
- or in a custom way, such as on the first Thursday of the month
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.
For example, one day in a month with much different load looks untypical and can’t be taken as load profile base – even when the load during this day is the highest.
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.
- To begin with, it’s advised to set the load profile precision. Normally it is about 90% or more.
- It means that one needs to sort the operations in the descending order of intensity and include those of them in the load profile that in sum are producing not less than 90% of load.
- It’s important to understand that not the percentage coming from each operation is important, but rather the sum percentage from selected operations. There can be operations in the load profile that compound less than 1% from the total load).
- The following operations can be included in the load profile even though they are not as precise as required:
- Critical operations – operations that should be included in the load profile independent from their intensity, because they are crucial for business and influence the system work.
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.
- Operations whose inclusion in the load profile doesn’t require any resources.
Determining the operation intensity in the load profile
- The intensity of each operation should be enough to perform the operation on each test step many enough times to verify the corresponding requirements.
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:
- Comparing the amount of operations
- Comparing intensities for each operation in the load profile
(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
We have compiled a list of the best software testing conferences to visit in 2024. In this article, we’ll explore the why, what, and how of attending these conferences, shedding light on the latest trends, must-attend events, and tips to maximize your experience. The Software Testing Methods Conference aims to unite academic scientists, researchers, and […]
TestCon Europe 2024, the premier software testing conference, comes to Vilnius, Lithuania, from Oct 22-25. Join experts and enthusiasts onsite or online to explore the evolving landscape of software testing. Topics include Shift-Left Testing, TestOps, AI-Powered Testing, and more. Don't miss your chance to be part of this enriching experience. Secure your spot today at TestCon's official page and be at the forefront of software testing excellence.
DevDays Europe is the ultimate software development conference that aims to bring together the brightest minds and innovators in the software development community. Join the conference for an immersive experience filled with transformative insights, collaborative opportunities, and the latest cutting-edge technology. The DevDays Europe 2024 will be happening both on-site and online, allowing everyone to join the event in their preferred format.
Releasing software is a multifaceted process that demands meticulous planning and execution. A software release checklist is a structured list of items and tasks that development and operations teams follow to ensure a successful release of a software product. This checklist serves as a comprehensive guide, covering various aspects of the software development life cycle. In a way, it substitutes for a roadmap, helping teams navigate the complexities of releasing software in a controlled and efficient manner. To ensure a triumphant launch, a comprehensive software release checklist is indispensable. In this guide, we will delve into the key aspects that demand your attention before the grand release.
Be first to know
Once a month we’ll be sending you a letter with all the useful insights that we could find and analise
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