<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://jtlreporter.com/blog</id>
    <title>JtlReporter Blog</title>
    <updated>2024-02-15T00:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://jtlreporter.com/blog"/>
    <subtitle>JtlReporter Blog</subtitle>
    <icon>https://jtlreporter.com/img/favicon.ico</icon>
    <entry>
        <title type="html"><![CDATA[Degradation Curve In Performance Testing]]></title>
        <id>https://jtlreporter.com/blog/degradation-curve-in-performance-testing</id>
        <link href="https://jtlreporter.com/blog/degradation-curve-in-performance-testing"/>
        <updated>2024-02-15T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Performance testing stands as a critical phase in the software development lifecycle, aiming to identify potential bottlenecks and ensure that the application meets its performance criteria under anticipated user loads. At the heart of performance testing lies the concept of the degradation curve, a powerful tool that provides insights into how an application's performance changes under various load conditions.]]></summary>
        <content type="html"><![CDATA[<p>Performance testing stands as a critical phase in the software development lifecycle, aiming to identify potential bottlenecks and ensure that the application meets its performance criteria under anticipated user loads. At the heart of performance testing lies the concept of the degradation curve, a powerful tool that provides insights into how an application's performance changes under various load conditions.
This comprehensive guide delves into every facet of degradation curves in performance testing, equipping you with the knowledge to leverage this tool for enhancing application performance and user satisfaction.</p><p><img loading="lazy" alt="Response Time Degradation Curve" src="/assets/images/degradation_curve-c061c910557e546041d94792f4deee1d.png" width="2774" height="1160" class="img_ev3q"></p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-a-degradation-curve">What is a Degradation Curve?<a href="#what-is-a-degradation-curve" class="hash-link" aria-label="Direct link to What is a Degradation Curve?" title="Direct link to What is a Degradation Curve?">​</a></h2><p>A degradation curve, in the context of performance testing, plots the relationship between load (number of users) and response time for a system. It is pivotal in understanding how an application's performance degrades, or worsens, as the load increases. The curve typically features several key regions: the single-user region, performance plateau, stress region, and the knee in performance.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-role-of-degradation-curves-in-performance-testing">The Role of Degradation Curves in Performance Testing<a href="#the-role-of-degradation-curves-in-performance-testing" class="hash-link" aria-label="Direct link to The Role of Degradation Curves in Performance Testing" title="Direct link to The Role of Degradation Curves in Performance Testing">​</a></h2><p>Degradation curves serve multiple purposes in performance testing, including:</p><ul><li>Identifying Performance Plateaus and Stress Areas: These curves help testers pinpoint the load levels at which an application maintains steady performance (performance plateau) and the points at which performance starts to degrade significantly (stress areas).</li><li>Determining "Good Enough" Performance Levels: By understanding where performance starts to degrade, teams can make informed decisions about acceptable performance levels for their applications.</li><li>Correlating Performance with User Experience: Degradation curves offer insights into how performance issues might affect end-user experience, helping teams prioritize performance improvements.</li></ul><h2 class="anchor anchorWithStickyNavbar_LWe7" id="analyzing-degradation-curves">Analyzing Degradation Curves<a href="#analyzing-degradation-curves" class="hash-link" aria-label="Direct link to Analyzing Degradation Curves" title="Direct link to Analyzing Degradation Curves">​</a></h2><h3 class="anchor anchorWithStickyNavbar_LWe7" id="components-of-a-degradation-curve">Components of a Degradation Curve<a href="#components-of-a-degradation-curve" class="hash-link" aria-label="Direct link to Components of a Degradation Curve" title="Direct link to Components of a Degradation Curve">​</a></h3><ol><li>The Single-User Region: This part of the curve represents the response time when only a single user is accessing the system. It provides a baseline for optimal performance.</li><li>The Performance Plateau: This region indicates the range of a user load under which the application performs optimally without significant degradation.</li><li>The Stress Region: Here, the application begins to degrade gracefully under increasing load, marking the onset of performance issues.</li><li>The Knee in Performance: This critical point signifies where performance degradation becomes severe, indicating the maximum load the application can handle before experiencing unacceptable performance.</li></ol><h2 class="anchor anchorWithStickyNavbar_LWe7" id="interpretation-of-degradation-curves">Interpretation of Degradation Curves<a href="#interpretation-of-degradation-curves" class="hash-link" aria-label="Direct link to Interpretation of Degradation Curves" title="Direct link to Interpretation of Degradation Curves">​</a></h2><p>Interpreting degradation curves requires understanding the nuances of each region:</p><ul><li>Single-User Region: Ideal response times here set the expectation for the application's best-case performance.</li><li>Performance Plateau: Identifying this area helps in understanding the optimal load range and setting realistic performance benchmarks.</li><li>Stress Region and Knee in Performance: These indicate the limits of acceptable performance, guiding performance tuning efforts and capacity planning.</li></ul><h2 class="anchor anchorWithStickyNavbar_LWe7" id="building-performance-degradation-curves">Building Performance-Degradation Curves<a href="#building-performance-degradation-curves" class="hash-link" aria-label="Direct link to Building Performance-Degradation Curves" title="Direct link to Building Performance-Degradation Curves">​</a></h2><p>Creating a degradation curve involves a series of steps, starting with setting up the performance testing environment and culminating in the analysis of gathered data. Key tools and technologies for generating degradation curves include load testing tools like&nbsp;JMeter, LoadRunner, and&nbsp;Gatling. These tools simulate various user loads on the application and measure the response times at each load level.
Step-by-Step Process for Creating a Degradation Curve</p><ol><li>Setting Up the Performance Testing Environment: This involves configuring the test environment to mimic the production environment as closely as possible.</li><li>Executing the Test and Collecting Data: Tests are run at incremental load levels to gather data on response times and other relevant metrics.</li><li>Plotting the Degradation Curve: Using the collected data, a curve is plotted with load levels on the x-axis and response times on the y-axis.</li></ol><h3 class="anchor anchorWithStickyNavbar_LWe7" id="complex-performance-testing-scenarios">Complex Performance-Testing Scenarios<a href="#complex-performance-testing-scenarios" class="hash-link" aria-label="Direct link to Complex Performance-Testing Scenarios" title="Direct link to Complex Performance-Testing Scenarios">​</a></h3><p>Understanding and analyzing degradation curves becomes even more critical when dealing with complex performance-testing scenarios. These scenarios might involve varying user behaviors, concurrent access patterns, or the introduction of new application features that could potentially alter performance dynamics.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="modeling-user-behavior-and-workload-distribution">Modeling User Behavior and Workload Distribution<a href="#modeling-user-behavior-and-workload-distribution" class="hash-link" aria-label="Direct link to Modeling User Behavior and Workload Distribution" title="Direct link to Modeling User Behavior and Workload Distribution">​</a></h3><p>Creating sophisticated models that simulate real-world user interactions with the application is key. By incorporating these models into performance testing, teams can generate more accurate degradation curves that reflect a wide range of user behaviors and workload distributions. This approach enables a deeper understanding of how different user types impact application performance.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="applying-degradation-curves-to-complex-scenarios">Applying Degradation Curves to Complex Scenarios<a href="#applying-degradation-curves-to-complex-scenarios" class="hash-link" aria-label="Direct link to Applying Degradation Curves to Complex Scenarios" title="Direct link to Applying Degradation Curves to Complex Scenarios">​</a></h3><p>In complex scenarios, degradation curves can illustrate how changes in user behavior or workload distribution affect application performance. For example, an increase in the number of users performing data-intensive operations might shift the performance plateau earlier in the curve, indicating a need for optimization in handling such operations.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="strategies-for-performance-improvement">Strategies for Performance Improvement<a href="#strategies-for-performance-improvement" class="hash-link" aria-label="Direct link to Strategies for Performance Improvement" title="Direct link to Strategies for Performance Improvement">​</a></h2><p>Once degradation curves have been analyzed, the next step involves using this data to guide performance improvement strategies. This might include identifying and addressing bottlenecks, optimizing code, or scaling infrastructure.</p><p>Degradation curves can highlight performance bottlenecks by showing where response times begin to degrade significantly. Identifying these bottlenecks is the first step toward implementing fixes, which might involve code optimization, database indexing, or enhancing server capacity.</p><p>The goal of performance tuning is often to shift the knee in the degradation curve to the right, thereby increasing the maximum load the application can handle before performance degrades ungracefully. This can be achieved through various strategies, including optimizing application code, improving database performance, and scaling out infrastructure.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion">​</a></h2><p>Degradation curves are a powerful tool in the performance tester's arsenal, offering detailed insights into how applications behave under load.
By understanding and applying the principles outlined in this guide, testing teams can enhance application performance, meet user expectations, and ultimately contribute to the success of their software projects.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="generate-degradation-curve-with-jtlreporter">Generate Degradation Curve With JtlReporter<a href="#generate-degradation-curve-with-jtlreporter" class="hash-link" aria-label="Direct link to Generate Degradation Curve With JtlReporter" title="Direct link to Generate Degradation Curve With JtlReporter">​</a></h2><p>Traditionally, creating the degradation curve was done in Excel or any other similar tool. This is indeed a very manual and not too scalable solution. As the test scenario, outcomes had to be copied from the test outputs from tools like JMeter, Locust, Gatling, etc. and copied
into Excel. With every new test result, the procedure must be done again. With JtlReporter you get the degradation curve for each scenario out of the box, without any manual steps needed.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="report" term="report"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How to Analyze Locust.io Report]]></title>
        <id>https://jtlreporter.com/blog/how-to-analyze-locustio-report</id>
        <link href="https://jtlreporter.com/blog/how-to-analyze-locustio-report"/>
        <updated>2023-08-09T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Locust.io is a highly effective open-source performance testing tool designed to help developers ascertain how their systems will function under the stress of multiple users.]]></summary>
        <content type="html"><![CDATA[<p>Locust.io is a highly effective open-source performance testing tool designed to help developers ascertain how their systems will function under the stress of multiple users.
By simulating simultaneous users, locust.io provides comprehensive insights into system performance and potential points of failure.
It's Python-based and allows developers to write test scenarios in the form of Python scripts.
This offers a significant degree of flexibility when it comes to generating specific user behaviors. The software is easy to use and offers efficient load-testing capabilities, including an informative HTML report feature.
This article delves into how to generate and understand these HTML reports to make the most of locust.io for optimum system performance.</p><p><img loading="lazy" alt="Locust.io HTML Report" src="/assets/images/locust_report-b3ca2771f0ad1a0744e4edf52ea3dc69.png" width="3240" height="4116" class="img_ev3q"></p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="procedure-to-generate-html-report-using-locustio">Procedure to Generate HTML Report Using Locust.io<a href="#procedure-to-generate-html-report-using-locustio" class="hash-link" aria-label="Direct link to Procedure to Generate HTML Report Using Locust.io" title="Direct link to Procedure to Generate HTML Report Using Locust.io">​</a></h2><p>Creating an HTML report in locust.io is a relatively straightforward process that delivers insights into your system's performance. Follow these steps to create your own HTML report:</p><p>The article assumes locust.io is installed on your machine, and you have an existing locust script. </p><ol><li>After writing test cases, run locust using the command line. Use the following command: <code>locust -f locustfile.py --html=report.html</code>. Replace "locustfile.py" with your file's name, and "report.html" should represent the name of your output file.</li><li>Open the locust interface, typically running at http://localhost:8089. Set the number of total users to simulate and spawn rate, then start swarming to initiate the test.</li><li>Once you have finished the test case, an HTML report will be automatically generated.</li></ol><p>Generating these regular reports is vital for assessing performance over time, which allows developers to catch potential problems early and avoid system breakdown due to high loads. It aids in monitoring system behavior under various load patterns, aiding in detecting bottlenecks, capacity constraints, and possibilities for optimization. By comprehending these reports, one can better maintain system stability and ensure an excellent user experience.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="understanding-the-report">Understanding the Report<a href="#understanding-the-report" class="hash-link" aria-label="Direct link to Understanding the Report" title="Direct link to Understanding the Report">​</a></h2><p>Understanding locust.io's HTML report is crucial to extract useful insights about your system's performance. Testing with locust.io results in an HTML report with several data fields and sections. Here's how to interpret the key sections.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="statistic-table">Statistic Table<a href="#statistic-table" class="hash-link" aria-label="Direct link to Statistic Table" title="Direct link to Statistic Table">​</a></h3><p>The report opens with a statistic table that includes the number of requests made, their distribution, and frequency. Three key parameters here are:</p><ul><li>Requests/sec: This is the number of completed requests per second.   </li><li>Fails: This includes the counts and the percentage of failures.</li><li>Failures/sec: This is the number of failed requests per second</li><li>Median &amp; Average Response Time: These figures indicate how long it took to process the requests, with the median being the middle value in the time set. But please note, that average is not the best metric to follow, actually they might be a <a href="/blog/2023/07/07/performance-testing-metric-percentiles#difference-between-percentiles-and-averages">misleading metric</a>.</li></ul><h3 class="anchor anchorWithStickyNavbar_LWe7" id="distribution-stats">Distribution Stats<a href="#distribution-stats" class="hash-link" aria-label="Direct link to Distribution Stats" title="Direct link to Distribution Stats">​</a></h3><p>This table shows the distribution of response times, which is vital to understand the user experience at different percentiles of the load.
The most often considered percentiles are p50(median), p90, p95 and p99. If the concept of percentile is new to you, please check <a href="/blog/2023/07/07/performance-testing-metric-percentiles">Performance Testing Metric - Percentile</a>, as this is metric is crucial in performance testing.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="charts">Charts<a href="#charts" class="hash-link" aria-label="Direct link to Charts" title="Direct link to Charts">​</a></h3><p>In the end, there are three different charts displaying the number of users, Response times, and Requests per second. These charts provide a visual reference for the system's performance over time.
As you can see those are aggregated charts from all request, you cannot see there charts for individual requests.</p><p>These data points collectively provide a basic view of how the system performed under the simulated load. Those charts can provide some insights into application performance overtime, but won't reveal
subtle nuances - such as performance drops in individual requests. Those drops can be easily hidden in the aggregated charts.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="key-metrics-measured-by-locustio">Key Metrics Measured by Locust.io<a href="#key-metrics-measured-by-locustio" class="hash-link" aria-label="Direct link to Key Metrics Measured by Locust.io" title="Direct link to Key Metrics Measured by Locust.io">​</a></h2><p>Key metrics are fundamental to assessing how well your system performed under testing. Some of the crucial metrics measured by locust.io include the following.</p><ul><li>Response Time: This is the time taken by a system to respond to a user request. It is provided in locust.io's report in various forms - percentiles, average, min and max response time. Lower response times generally indicate better performance. Unfortunately, Locust.io does not provide us with <a href="/blog/blog/2023/07/14/performance-testing-metric-standard-deviation">standard deviation</a>, which is helpful
in system performance stability assessment. Instead, you could have a look at the difference between min response time and average. If the there is a big difference between them, it might indicate a performance bottleneck.</li><li>Error Rate: Represented as 'Fail' in the report, this measures the number and percentage of failed requests in relation to total requests made. In an ideal situation, the error rate should be zero; however, when performing intense load-testing, it's common to see some errors which can help identify potential weak points or bugs in the system.</li><li>Requests Per Second: This denotes the number of requests a system can handle per second. A higher number indicates better system performance. It plays a crucial role in determining if your system can handle high traffic while still providing decent response times. Please refer to our other article if you would like to know the <a href="/blog/2021/04/21/virtual-users-vs-rps">difference between the number of virtual users and RPS</a>.</li></ul><p>These metrics, in conjunction with others provided in locust.io's HTML report, provide a basic overview of your system's performance under load. By regularly monitoring these metrics, developers can ensure their systems are always ready to handle actual user traffic.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="decoding-performance-metrics-with-locustio--glimpsing-beyond-with-jtl-reporter">Decoding Performance Metrics with Locust.io &amp; Glimpsing Beyond with Jtl Reporter<a href="#decoding-performance-metrics-with-locustio--glimpsing-beyond-with-jtl-reporter" class="hash-link" aria-label="Direct link to Decoding Performance Metrics with Locust.io &amp; Glimpsing Beyond with Jtl Reporter" title="Direct link to Decoding Performance Metrics with Locust.io &amp; Glimpsing Beyond with Jtl Reporter">​</a></h2><p>In conclusion, locust.io provides a robust and reasonably detailed approach to performance testing with its capacity to simulate thousands of users and generate insightful HTML reports. Its easy-to-understand report format allows developers to interpret key metrics such as response time, error rate, and requests per second effectively. Regular report generation is also vital to continually improve system performance and catch potential problems early.</p><p>However, while locust.io's HTML offers neat features, alternatives like JtlReporter offer more flexibility and features. JtlReporter can provide rich analytic features, supportive visual charts, and even storage options for test results. Its user-friendly interface and detailed analysis can provide a comprehensive overview of system performance, which can be a perfect fit for highly complex large-scale systems. Therefore, while utilizing locust.io for performance testing, give a <a href="/docs/">JtlReporter a try</a>.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="report" term="report"/>
        <category label="Locust.io" term="Locust.io"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How to Analyze JMeter Dashboard Report - Statistics]]></title>
        <id>https://jtlreporter.com/blog/how-to-analyze-jmeter-dashboard-report-statistics</id>
        <link href="https://jtlreporter.com/blog/how-to-analyze-jmeter-dashboard-report-statistics"/>
        <updated>2023-07-30T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[JMeter, a popular open-source software tool designed for load testing and performance measurement,]]></summary>
        <content type="html"><![CDATA[<p>JMeter, a popular open-source software tool designed for load testing and performance measurement,
provides a built-in reporting feature known as the 'Dashboard Report'. The Report gathers or collates the
results of performance tests, depicting them in an easy-to-comprehend tabular format and graphs. In this article
we will have a look at the "Statistics" table.</p><p>Although the detailed process of generating this report is beyond the scope of this article, we have another post where
you can find out how to generate the <a href="/blog/how-to-generate-jmeter-dashboard-report">JMeter Dashboard Report</a>.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-importance-of-the-statistics-in-jmeter-report">The Importance of the Statistics in JMeter Report<a href="#the-importance-of-the-statistics-in-jmeter-report" class="hash-link" aria-label="Direct link to The Importance of the Statistics in JMeter Report" title="Direct link to The Importance of the Statistics in JMeter Report">​</a></h2><p>The Statistics table in JMeter Dashboard Report is an integral part of performance testing analysis due to its comprehensive view of test results.
It presents summarized information, including the average, median, and percentiles of response times, error percentage,
throughput, and more, all of which help identify bottlenecks in application performance.
Understanding the Statistics Report is crucial as it provides valuable insights into application behavior under different load conditions;
thus, it aids in determining scalability, reliability, and capacity planning. It forms the basis to uncover potential performance issues,
optimize system performance, and ensure a seamless user experience.</p><p><img loading="lazy" alt="JMeter Statistics in Dashboard Report" src="/assets/images/jmeter_report_statistics-28245c43bc87436e4dff5188834c336e.png" width="2682" height="1276" class="img_ev3q"></p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="detailed-analysis-of-the-aggregate-report">Detailed Analysis of the Aggregate Report<a href="#detailed-analysis-of-the-aggregate-report" class="hash-link" aria-label="Direct link to Detailed Analysis of the Aggregate Report" title="Direct link to Detailed Analysis of the Aggregate Report">​</a></h2><p>The detailed analysis of the Aggregate Report in JMeter involves examining various columns that provide information about the performance of the application.
Key metrics include:</p><ul><li>Label Name: name of a sampler.</li><li>Number of Samples: the total number of requests made.</li><li>Average, Min, Max, Median, <a href="/blog/2023/07/07/performance-testing-metric-percentiles">90th, 95th and 95th percentile</a>: These indicate the various response times, respectively, providing a clear perspective on overall application performance.</li><li>Throughput: Number of requests per unit of time that your application can handle. </li><li>Number of failed requests and Error %: This presents the total number of failed requests and their rate as compared to the total requests, signaling issues if the value is high.</li><li>Network - Received and Sent: The amount of data being transferred in both directions, represented as KB/sec.</li></ul><p>Each of these columns in the Statistics Report furnishes a different piece of the performance puzzle.
They collectively give us a well-rounded view of the system's performance under assorted load conditions.
Detailed analysis of these metrics helps to detect weak attributes and areas that need further improvement to ensure an optimized and seamless user experience.
This analysis also helps us establish a foundational understanding of the system requirements,
guiding strategic improvement plans and facilitating better performance.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="interpreting-the-results-from-the-statistics-report">Interpreting the Results From the Statistics Report<a href="#interpreting-the-results-from-the-statistics-report" class="hash-link" aria-label="Direct link to Interpreting the Results From the Statistics Report" title="Direct link to Interpreting the Results From the Statistics Report">​</a></h2><p>Interpreting results from the JMeter Statistics Report involves deciphering data from each column to gain insights into application performance.
For instance, prolonged response times indicates potential performance hiccups, while variations in Min and Max response times could imply inconsistent performance.
A high Error % could be a red flag reflecting issues with server capacity or backend programming. Low throughput value together with long response times, most likely
means a bottleneck in the application or infrastructure.
By correctly reading and interpreting this data, you can identify potential problem areas, such as system stress points, bottlenecks, or areas of inefficiency.
These insights provide a useful foundation for defining corrective measures and performance optimization strategies.</p><p>It helps you develop a forward-looking perspective and create an action plan to enhance your performance strategy, ensuring a robust and seamless user experience.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="limitations-of-the-statistics-report">Limitations of the Statistics Report<a href="#limitations-of-the-statistics-report" class="hash-link" aria-label="Direct link to Limitations of the Statistics Report" title="Direct link to Limitations of the Statistics Report">​</a></h2><p>While the Statistics Report in JMeter Dashboard is indispensably beneficial, it possesses limitations.
Primarily, it cannot display the values over time, for this, we need to have a look at the included graphs. For instance, the throughput could seem
acceptable but by looking at the graph we could spot some drops in the performance that would be worth further investigation. This applies to most of the
provided metrics - we need to have a look at the graphs to spot the patterns of potential performance hiccups.
The Statistics table misses for instance a <a href="/blog/2023/07/14/performance-testing-metric-standard-deviation">standard deviation</a>, a measure of how much the data deviates from the mean or average value. It provides valuable insights into the consistency and reliability of a given metric.
Another drawback is that finding the respective graph for a given label requires you to go to another tab and find the correct label among the others.
Last, but not least, it's not very easy to compare those metrics with another report, for instance, you want to assess the new changes in your application
and compare it with the state before those changes. That's where JtlReport could be handy. It addresses all the above-mentioned issues: <a href="/docs/introduction/features#test-run-comparison">easy test report comparison</a>,
<a href="/docs/introduction/features#request-statistics-customization">configurable request statistics</a> including the standard deviation, graphs integrated into request statistics table and much more.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="report" term="report"/>
        <category label="jmeter" term="jmeter"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How to generate JMeter Dashboard Report]]></title>
        <id>https://jtlreporter.com/blog/how-to-generate-jmeter-dashboard-report</id>
        <link href="https://jtlreporter.com/blog/how-to-generate-jmeter-dashboard-report"/>
        <updated>2023-07-29T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[JMeter, also known as Apache JMeter, is a powerful open-source software that you can use to perform load testing, functional testing, and performance measurements on your application or website. It helps you understand how your application behaves under different levels of load and can reveal bottlenecks or issues in your system that could impact user experience.]]></summary>
        <content type="html"><![CDATA[<p>JMeter, also known as Apache JMeter, is a powerful open-source software that you can use to perform load testing, functional testing, and performance measurements on your application or website. It helps you understand how your application behaves under different levels of load and can reveal bottlenecks or issues in your system that could impact user experience.&nbsp;
This article will guide you on how to generate a JMeter Dashboard Report, ensuring that you utilize this critical tool productively and effectively for your application performance optimization.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="software-requirements">Software Requirements<a href="#software-requirements" class="hash-link" aria-label="Direct link to Software Requirements" title="Direct link to Software Requirements">​</a></h2><p>To generate a JMeter Dashboard Report, certain software prerequisites must be met. Firstly, Apache JMeter, the load-testing tool, should be installed on your system, with the latest stable release preferred. Secondly, given JMeter's Java base, you'll also need to install the Java Development Kit (JDK), preferably the latest version. Don't forget to set your JAVA_HOME environment variable to your JDK installation path. Lastly, depending on your testing needs, additional plugins or applications may be necessary for data analysis or software integration with JMeter.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="detailed-step-by-step-guide-on-how-to-generate-jmeter-dashboard-report">Detailed Step-by-step Guide on How to Generate JMeter Dashboard Report<a href="#detailed-step-by-step-guide-on-how-to-generate-jmeter-dashboard-report" class="hash-link" aria-label="Direct link to Detailed Step-by-step Guide on How to Generate JMeter Dashboard Report" title="Direct link to Detailed Step-by-step Guide on How to Generate JMeter Dashboard Report">​</a></h2><h3 class="anchor anchorWithStickyNavbar_LWe7" id="setting-up-the-environment">Setting up the Environment<a href="#setting-up-the-environment" class="hash-link" aria-label="Direct link to Setting up the Environment" title="Direct link to Setting up the Environment">​</a></h3><p>First, confirm that JMeter and JDK are installed correctly. You can do this by opening a command prompt (or terminal in Linux/Mac) and typing <code>jmeter -v</code> and <code>java -version</code>. These commands should return the JMeter and JDK versions installed on your PC, respectively. Next, open JMeter application. Choose your preferred location to store the output. It should be a place where JMeter can generate results and graphs. Set up your test plan. A test plan specifies what to test and how to run the test. You can add a thread group to the test plan and configure the number of users, ramp-up period, and loop count, among other parameters.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="planning-and-executing-the-test">Planning and Executing the Test<a href="#planning-and-executing-the-test" class="hash-link" aria-label="Direct link to Planning and Executing the Test" title="Direct link to Planning and Executing the Test">​</a></h3><p>Add the necessary samplers to the thread group. Samplers tell JMeter to send requests to a server and wait for a response.&nbsp;
Now add listeners to your test plan. Listeners provide access to the data gathered by JMeter about the test cases as a sampler component of JMeter is executed.
Execute your test plan. You can run your test by clicking the "Start" button (green triangle) on the JMeter tool's top bar.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="generating-the-report">Generating the Report<a href="#generating-the-report" class="hash-link" aria-label="Direct link to Generating the Report" title="Direct link to Generating the Report">​</a></h3><p>To create your Dashboard Report from the JTL file, go to the command line, navigate to your JMeter bin directory, and use the following command:</p><p><code>jmeter -g [path to JTL file] -o [folder where dashboard should be generated]</code>.</p><p>After running this command, JMeter generates a Dashboard Report in the specified output folder. This report includes various charts and tables that present a visual analysis of your performance test.</p><p><img loading="lazy" alt="jmeter report summary" src="/assets/images/jmeter_report_summary-262f263e3f76ea55090759473a6c637e.png" width="2730" height="1712" class="img_ev3q"></p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="understanding-jmeter-dashboard-report">Understanding JMeter Dashboard Report<a href="#understanding-jmeter-dashboard-report" class="hash-link" aria-label="Direct link to Understanding JMeter Dashboard Report" title="Direct link to Understanding JMeter Dashboard Report">​</a></h2><ol><li>Top Level (Summary): This section provides an overview of the test, including test duration, total requests, errors, throughput (requests per second), average response time, and more.&nbsp;</li><li><a href="/blog/understanding-apdex-metric">APDEX (Application Performance Index)</a>: This index measures user satisfaction based on the response times of your application.</li><li>Graphical representation of Results: JMeter includes various charts such as throughput-over-time, response-time-over-time, active-threads-over-time, etc. Each of these graphs provides a visual representation of your test's metrics over different time spans.</li><li>Request Summary: This table provides more detailed information for each sampler/request, such as median, min/max response times, error percentages, etc.
<img loading="lazy" alt="jmeter report statistics" src="/assets/images/jmeter_report_statistics-28245c43bc87436e4dff5188834c336e.png" width="2682" height="1276" class="img_ev3q"></li></ol><h2 class="anchor anchorWithStickyNavbar_LWe7" id="key-metrics-in-the-report">Key Metrics in the Report<a href="#key-metrics-in-the-report" class="hash-link" aria-label="Direct link to Key Metrics in the Report" title="Direct link to Key Metrics in the Report">​</a></h2><p>Some of the essential metrics you will come across in a JMeter Dashboard report include:</p><ol><li>Error %: The percentage of requests with errors.</li><li>Throughput: Number of requests per unit of time that your application can handle.</li><li>Min / Max time: The least / maximum time taken to handle the requests.</li><li><a href="/blog/2023/07/07/performance-testing-metric-percentiles">90 % line</a>: 90 percent of the response times are below this value.</li></ol><h2 class="anchor anchorWithStickyNavbar_LWe7" id="interpreting-the-report">Interpreting the Report<a href="#interpreting-the-report" class="hash-link" aria-label="Direct link to Interpreting the Report" title="Direct link to Interpreting the Report">​</a></h2><p>Interpreting the Dashboard Report involves looking at these metrics and evaluating whether they meet your application's performance requirements.</p><ol><li>The Error % should ideally be zero. Any non-zero value indicates problems in the tested application or the testing setup.</li><li>High throughput with low response time indicates good performance. However, if response time increases with throughput, it might signal performance issues.</li><li><a href="/blog/2023/07/07/performance-testing-metric-percentiles">The 90% line</a> is often taken as the 'acceptable' response time. If most of the response times (90%) are within this limit, the performance is generally considered satisfactory.</li><li><a href="/blog/understanding-apdex-metric">The APDEX score</a>, ranging from 0 to 1, should ideally be close to 1. A value less than 0.7 indicates that the performance needs improvement.
By understanding these key points, you can interpret JMeter Dashboard Report effectively, enabling you to draw conclusions about your application's performance and plan improvements accordingly.</li></ol><h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion">​</a></h2><p>The JMeter Dashboard Report is a powerful tool that provides insights into the performance of your website or application.
This extensive and visual report allows you to ascertain the performance bottlenecks and potential room for optimization,
thereby enabling you to enhance the end-user experience. </p><p>Alternatively, you can get performance testing reports with JtlReporter. With JtlReporter, you can quickly and easily create comprehensive and easy to understand performance test reports for your system with metrics, such as requests per second, various percentiles, error rate, and much more.
Additionally, you can compare test runs side-by-side, create custom charts with any metrics available, and set up notifications for external services to be informed when a report is processed <a href="/docs/introduction/features">and more</a>.</p><p><a href="/docs/">Try JtlReporter</a> today and get detailed performance test reports with ease!</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="report" term="report"/>
        <category label="jmeter" term="jmeter"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Histograms in Performance Testing Report]]></title>
        <id>https://jtlreporter.com/blog/2023/07/16/histogram-performance-testing-report</id>
        <link href="https://jtlreporter.com/blog/2023/07/16/histogram-performance-testing-report"/>
        <updated>2023-07-16T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[In performance testing, it is integral to have detailed, accurate methods for trending and variability analysis.]]></summary>
        <content type="html"><![CDATA[<p>In performance testing, it is integral to have detailed, accurate methods for trending and variability analysis.
A useful visual tool that helps in this regard is the histogram. Using histograms in performance testing reports can aid in the breakdown of data distribution,
revealing the shape and spreading of performance test data, thus enhancing understanding of test results. </p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="relationship-between-histograms-and-standard-deviation-in-performance-testing">Relationship Between Histograms and Standard Deviation in Performance Testing<a href="#relationship-between-histograms-and-standard-deviation-in-performance-testing" class="hash-link" aria-label="Direct link to Relationship Between Histograms and Standard Deviation in Performance Testing" title="Direct link to Relationship Between Histograms and Standard Deviation in Performance Testing">​</a></h2><p>A histogram complements other measures of data distribution, such as <a href="/blog/2023/07/14/performance-testing-metric-standard-deviation">standard deviation</a>.
While <a href="/blog/2023/07/14/performance-testing-metric-standard-deviation">standard deviation</a> elucidates the degree of data dispersion from the mean,
histograms visually portray data grouping in intervals, clearly highlighting the frequency of data occurring within these intervals.
The marriage of histograms and standard deviation can lead to a more comprehensive understanding of data distribution.</p><p>The histogram uses its visual prowess to depict and highlight the position and range of all data points grouped into bins,
while standard deviation uses its mathematical sharpness to assess the dispersion and deviation of the data.
Collaboratively, they provide us nuanced way for understanding of the distribution of collected data samples.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="understanding-normal-distribution-in-histograms">Understanding Normal Distribution in Histograms<a href="#understanding-normal-distribution-in-histograms" class="hash-link" aria-label="Direct link to Understanding Normal Distribution in Histograms" title="Direct link to Understanding Normal Distribution in Histograms">​</a></h2><p>A critical concept represented by histograms in performance testing is normal distribution, which often emerges as a likely outcome.
Normal distribution, depicted as a bell curve, signifies that most data points cluster near the mean,
with the frequency gradually declining as they diverge from the center. This renders the normal distribution pattern symmetric. </p><p>In performance testing, such normal distribution might indicate a stable system where the majority of response times congregate around a central value.
Observing an abnormally shaped histogram or one with significant skewness, conversely, may reveal system performance issues.</p><p>Hence, understanding normal distribution in the performance testing context is an essential skill for testers.
It is a visual cue in the histogram that carries great weight. Moreover, it aids in forming informed expectations about system behavior.
So, as testers, our eye on the histogram should always look out for the bell curve of normal distribution.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="utility-and-relevance-of-histograms-in-performance-testing-reports">Utility and Relevance of Histograms in Performance Testing Reports<a href="#utility-and-relevance-of-histograms-in-performance-testing-reports" class="hash-link" aria-label="Direct link to Utility and Relevance of Histograms in Performance Testing Reports" title="Direct link to Utility and Relevance of Histograms in Performance Testing Reports">​</a></h2><p>Given their ability to elucidate data patterns visually, histograms hold high utility in performance tests reports.
They furnish testers with an easy-to-understand, intuitive breakdown of data distribution over a range of response times.</p><p>With bins on the horizontal axis representing data ranges and bars on the vertical axis signifying the frequency of data within these ranges,
histograms aptly illustrate the concentration and dispersion of response times.
Consequently, they yield important insights into system response behavior under different workloads. </p><p>Additionally, reviewing histograms over sequential test runs can help identify trends, and brief or sustained changes,
aiding system fine-tuning and optimization. </p><p>The profound relevance of histograms encompasses providing insights into extreme values too.
A sudden tall peak in a histogram could indicate an outlier identify, data points that deviate significantly from the mean,
that needs to be investigated and analyzed to ensure the robustness and reliability of a system.
Another example would be a histogram that is heavily skewed or has multiple peaks, for instance, may signify issues with system balance
or the existence of multiple user groups with different behavior.
A narrow histogram indicates a potentially healthier system with consistent response times.
On the other hand, a broad, flat histogram may point toward a system with unpredictable response times,
highlighting areas that need improvement for better performance consistency.</p><p><img loading="lazy" alt="Histogram with outlier data" src="/assets/images/histogram-outlier-c940a06c2ae7edc2ba327b3c8368e7f3.png" width="2740" height="1040" class="img_ev3q"></p><p>With the ability to illuminate the grey areas of data distribution, spotlight outliers,
and, above all, present complicated data in an accessible, user-friendly format,
histograms hold high relevance in the world of performance testing reports.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="closing-thoughts">Closing Thoughts<a href="#closing-thoughts" class="hash-link" aria-label="Direct link to Closing Thoughts" title="Direct link to Closing Thoughts">​</a></h2><p>In sum, histograms play a pivotal role in the domain of performance test reports. As a visualization tool,
they work in tandem with measures like standard deviation to offer a comprehensive perspective on data distribution.
By illustrating patterns such as normal distribution and highlighting outliers,
they significantly assist in performance testing analytics and deepen the understanding of test results. </p><p>Histogram chart is available in JtlReporter for every label, so you can analyze every sampler individually, and it gives you
also the ability to compare histograms of two different performance testing reports. <a href="/docs/">Get started</a> with JtlReporter today!</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="report" term="report"/>
        <category label="histogram" term="histogram"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Performance Testing Metric - Standard Deviation]]></title>
        <id>https://jtlreporter.com/blog/2023/07/14/performance-testing-metric-standard-deviation</id>
        <link href="https://jtlreporter.com/blog/2023/07/14/performance-testing-metric-standard-deviation"/>
        <updated>2023-07-14T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Grasp a standard deviation metric in performance testing and how it is helpful for performance testing report analysis.]]></summary>
        <content type="html"><![CDATA[<p>Performance testing is a crucial element in software development, revolving around evaluating and validating efficiency,
speed, scalability, stability, and responsiveness of a software application under a variety of workload conditions.
Conducted in a controlled environment, performance testing is designed to simulate real-world load scenarios
to anticipate application behavior and responsiveness in terms of cyber traffic or user actions.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-a-standard-deviation">What's a standard deviation?<a href="#whats-a-standard-deviation" class="hash-link" aria-label="Direct link to What's a standard deviation?" title="Direct link to What's a standard deviation?">​</a></h2><p>Standard deviation is a commonly used statistical measure that is used to assess the variability or spread of a set of data points. It is a measure of how much the data deviates from the mean or average value.
It provides valuable insights into the consistency and reliability of a given metric, which can be useful in spotting potential performance bottlenecks.
A low standard deviation indicates that the data is tightly clustered around the mean, while a high standard deviation indicates that the data is spread out over a wider range.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="importance-of-standard-deviation-in-performance-testing">Importance of Standard Deviation in Performance Testing<a href="#importance-of-standard-deviation-in-performance-testing" class="hash-link" aria-label="Direct link to Importance of Standard Deviation in Performance Testing" title="Direct link to Importance of Standard Deviation in Performance Testing">​</a></h2><p>The role of standard deviation in performance testing is profound. It provides an objective measure of the variations in system performance, thus highlighting the stability of the software application.
A higher standard deviation indicates a high variation in the performance results and could be symptomatic of inherent problems within the software,
while a lower or consistent standard deviation reflects well on system stability.</p><p>Thus, the inclusion of standard deviation in performance testing is not just informative but also crucial for a focused and efficient optimization of system performance. It serves as a compass for test engineers,
guiding their efforts towards areas that show significant deviations and require improvements.
This makes the power of Standard Deviation indispensable when conducting performance testing.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="practical-examples-of-standard-deviation-in-performance-testing">Practical Examples of Standard Deviation in Performance Testing<a href="#practical-examples-of-standard-deviation-in-performance-testing" class="hash-link" aria-label="Direct link to Practical Examples of Standard Deviation in Performance Testing" title="Direct link to Practical Examples of Standard Deviation in Performance Testing">​</a></h2><p>For instance, if the software's response time observations have a lower standard deviation, it conveys consistency in the response times under variable loads.
If there is a higher standard deviation, as a tester, you would need to delve further into performance analysis, pinpointing the potential bottlenecks.
It essentially acts as a roadmap, directing you towards the performance-related fixes required to achieve an optimal-performing website or application. The standard deviation represents the data and its
distribution pattern. If the standard deviation is greater than half of its mean, it most likely means that the data is not formed in a normal distribution pattern. The closer the data is to the normal distribution pattern (bell curve), the
higher the changes that the measured data do not include any suspect behavior.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="incorporating-standard-deviation-in-performance-testing-reports-through-jtl-reporter">Incorporating Standard Deviation in Performance Testing Reports through JTL Reporter<a href="#incorporating-standard-deviation-in-performance-testing-reports-through-jtl-reporter" class="hash-link" aria-label="Direct link to Incorporating Standard Deviation in Performance Testing Reports through JTL Reporter" title="Direct link to Incorporating Standard Deviation in Performance Testing Reports through JTL Reporter">​</a></h2><p>In this digital era, leveraging the power of analytical tools to assess software performance has become essential. JTL Reporter is such a captivating platform that aids in recording, analyzing, and sharing the results of performance tests. This platform effectively integrates standard deviation measurement in performance testing, offering a holistic overview of system performance and stability and, thereby, proving invaluable in making informed testing decisions.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="metrics" term="metrics"/>
        <category label="standard deviation" term="standard deviation"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Performance Testing Metric - Percentile]]></title>
        <id>https://jtlreporter.com/blog/2023/07/07/performance-testing-metric-percentiles</id>
        <link href="https://jtlreporter.com/blog/2023/07/07/performance-testing-metric-percentiles"/>
        <updated>2023-07-07T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Detailed insight into percentiles and how they contrast with averages in the context of performance testing.]]></summary>
        <content type="html"><![CDATA[<p>Performance testing is a critical process that ensures the quality, reliability, and optimal performance of software applications under specific workloads,
speed, and stability. One of the key metrics used in performance testing is "Percentile."
This article aims to provide a detailed insight into percentiles and how they contrast with averages in the context of performance testing.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="understanding-percentiles">Understanding Percentiles<a href="#understanding-percentiles" class="hash-link" aria-label="Direct link to Understanding Percentiles" title="Direct link to Understanding Percentiles">​</a></h2><p>A percentile is a measure in statistics that indicates the value below which a given percentage of data falls.
In performance testing, percentiles give testers an indication of the distribution characteristics of response times.
It helps to quantitatively assess the load handling capacity, stability, and responsiveness of the system under testing.
A 95th percentile, for instance, means that 95% of the observed data fall below that value.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-percentiles-are-used-in-performance-testing">How Percentiles are Used in Performance Testing<a href="#how-percentiles-are-used-in-performance-testing" class="hash-link" aria-label="Direct link to How Percentiles are Used in Performance Testing" title="Direct link to How Percentiles are Used in Performance Testing">​</a></h2><p>In performance testing, percentiles are used to provide a more nuanced picture of how a system performs across a range of loads.
For instance, if in load testing, a system's 95th percentile response time is 2 seconds, it means that 95% of the users are experiencing response times of 2 seconds or less. This leaves 5% who experience more than 2 seconds.</p><p>In real-world usage we want to have more percentiles at our disposal - usually in performance testing reports 50th, 90th, 95th, and 99th percentiles are used.
Very often percentiles are used to establish performance KPIs in performance testing.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="difference-between-percentiles-and-averages">Difference Between Percentiles and Averages<a href="#difference-between-percentiles-and-averages" class="hash-link" aria-label="Direct link to Difference Between Percentiles and Averages" title="Direct link to Difference Between Percentiles and Averages">​</a></h2><p>While percentiles and averages are both statistical measures used in performance testing, they depict different aspects of the data.
The average, or mean, is the sum of all values divided by the number of values. It acts as the balance point of the data set, but it may not necessarily represent a "typical" user experience.</p><p>Percentiles, on the other hand, show the distribution across the range of responses. Comparatively, they are more useful for understanding the consistency of system performance.
For instance, if a small number of server requests take a long time to complete,
the average response time will increase even if most requests are completed quickly – potentially giving a misleading picture of overall performance, whereas, with percentiles,
you can clearly see that most of the responses are quick, with only a few long ones. For this reason, the average is not a recommended metric to be used for KPIs.</p><p>By understanding and interpreting these statistical measures properly, organizations can enhance the quality, reliability, and usability of their software applications, leading to improved user experience and business productivity.
Performance testing, backed by accurate data interpretation, is hence the key to deriving maximum value and efficiency from any software application.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="metrics" term="metrics"/>
        <category label="percentile" term="percentile"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Scatter Chart in Performance Testing]]></title>
        <id>https://jtlreporter.com/blog/2023/04/07/scatter-chart</id>
        <link href="https://jtlreporter.com/blog/2023/04/07/scatter-chart"/>
        <updated>2023-04-07T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Understand the scatter chart in performance testing reports how it can help you to understand the data better.]]></summary>
        <content type="html"><![CDATA[<p>As a performance tester, one of the most important tasks is to correctly analyze the performance testing results.
Although it might look like an easy task, the opposite is true here. When looking at the performance test report metrics and charts, there are many hidden traps.
The biggest one is, the data you are looking at are aggregated. The problem with aggregated metrics is that
they hide information from you (and averages are among the worst here), like very small spikes in response times.
But those spikes still pose a performance bottleneck, that needs to be solved.</p><p>One of the most effective ways to visualize performance testing data is through scatter charts.
It is particularly useful in performance testing because it can help you to identify patterns and trends in your raw data, as well as potential performance issues.
Look at the following example of aggregated chart displaying an average response time of a web application:</p><p><img loading="lazy" alt="Average Response Time" src="/assets/images/avg_chart-c13f5a44694ce330514b270c87563499.png" width="2881" height="942" class="img_ev3q"></p><p>As you can see, the information we can get from this chart is limited. It does not show almost any pattern in the data.
The only thing we can read from it, there was initially a spike in response times (still worth investigating further as this looks like a performance bottleneck),
but besides that, that's all we can get from this chart. Now, let's look at the same data, but this time in a scatter chart:</p><p><img loading="lazy" alt="Scatter Chart" src="/assets/images/scatter_chart-e82819b2b6d7e96e326084d90c3127f7.png" width="2856" height="928" class="img_ev3q"></p><p>The scatter is more informative than the average response time chart. It shows us that the response times are grouped into three clusters.
The banding pattern is usually fine, but in this case, the spacing between the clusters seems to be bigger than desired - the clusters are roughly defined around 0-100ms, 1000-200ms, and 12000-2000ms.
Another pattern we can see here is that on some occasions, the response times form almost a vertical line. This might signify a performance bottleneck in the application as something might be blocking the request processing.
And last, but not least, we can see that there are some outliers in the data. The outliers are the points that are far away from the rest of the data. The question here is, are they outliers or do they have statistical significance?
Again, here we would need to investigate further and run the test multiple times to see if the outliers are consistent.</p><p>In this quick introduction, we have learned how scatter charts can help us to analyze performance testing outputs, and reveal patterns and trends in the data,
that are otherwise hidden in the aggregated charts. Luckily, the scatter chart is now included in the JtlReporter in the latest version, so you can get even more out of your performance
testing data and make better decisions about your application performance.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="metrics" term="metrics"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Load Testing Using Taurus]]></title>
        <id>https://jtlreporter.com/blog/2023/02/15/taurus-performance-testing</id>
        <link href="https://jtlreporter.com/blog/2023/02/15/taurus-performance-testing"/>
        <updated>2023-02-15T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Performance testing is a crucial step in ensuring that a software application can perform optimally under stress. Taurus]]></summary>
        <content type="html"><![CDATA[<p>Performance testing is a crucial step in ensuring that a software application can perform optimally under stress. Taurus
is an open-source performance testing tool that simplifies performance testing, offering developers and testers a
complete performance testing environment. This tool supports different protocols such as HTTP, JMS, JDBC, MQTT, and
others. In this article, we will look at Taurus, its features, and how to use it.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="features-of-taurus">Features of Taurus<a href="#features-of-taurus" class="hash-link" aria-label="Direct link to Features of Taurus" title="Direct link to Features of Taurus">​</a></h2><p>Taurus has numerous features that make it a great tool for performance testing. Below are some of its key features:</p><ol><li>Support for Multiple Protocols: Taurus supports various protocols, including HTTP, JMS, JDBC, MQTT, and others,
making it a versatile tool.</li><li>Easy Test Creation: With Taurus, creating a test script is easy. You can create your script using YAML or JSON
format, or use existing scripts from popular performance testing tools like JMeter, Gatling, and Locust.</li><li>Cloud Integration: Taurus supports integration with cloud-based testing platforms such as BlazeMeter. This feature allows you to run performance tests on the cloud, helping you save on hardware costs.</li><li>Real-Time Results and Reporting: Taurus provides real-time results and reporting, allowing you to analyze your test
results as they happen. This feature is critical in identifying performance issues quickly.</li><li>Compatibility with CI/CD: Taurus is compatible with Continuous Integration/Continuous Delivery (CI/CD) systems such
as Jenkins and Travis. This compatibility allows for easy integration with the development pipeline.</li></ol><h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-to-use-taurus">How to Use Taurus<a href="#how-to-use-taurus" class="hash-link" aria-label="Direct link to How to Use Taurus" title="Direct link to How to Use Taurus">​</a></h2><p>Using Taurus is relatively easy and straightforward. Here's a step-by-step guide on how to use Taurus:</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-1-create-a-test-scenario">Step 1: Create a Test Scenario<a href="#step-1-create-a-test-scenario" class="hash-link" aria-label="Direct link to Step 1: Create a Test Scenario" title="Direct link to Step 1: Create a Test Scenario">​</a></h3><p>To create a test scenario, you need to define a YAML file that contains the test configuration. A YAML file is a
human-readable text file that uses indentation to indicate the structure of data. In the case of Taurus, YAML files
define the test scenario, which includes the testing tool to be used, the location of the test script, and the test
configuration parameters.
Here's an example of a simple test scenario for testing a web application using the JMeter testing tool:</p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#bfc7d5;--prism-background-color:#292d3e"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#bfc7d5"><span class="token key atrule">execution</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(199, 146, 234)">-</span><span class="token plain"> </span><span class="token key atrule">concurrency</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> </span><span class="token number" style="color:rgb(247, 140, 108)">10</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    </span><span class="token key atrule">ramp-up</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> 1m</span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    </span><span class="token key atrule">hold-for</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> 5m</span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    </span><span class="token key atrule">scenario</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> with_script</span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"> </span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token key atrule">scenarios</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">   </span><span class="token key atrule">with_script</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">      </span><span class="token key atrule">script</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> script</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain">path/to/test_script.jmx </span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>In the above example, the test scenario contains the JMeter test script located at path/to/test_script.jmx.</p><p>The test will be executed with a concurrency of 10 users, a ramp-up time of 1 minute, and a hold time of 5 minutes.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-2-run-the-test">Step 2: Run the Test<a href="#step-2-run-the-test" class="hash-link" aria-label="Direct link to Step 2: Run the Test" title="Direct link to Step 2: Run the Test">​</a></h3><p>To run the test, you need to execute the following command in the terminal:</p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#bfc7d5;--prism-background-color:#292d3e"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#bfc7d5"><span class="token plain">bzt path/to/test_scenario.yml</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>Optionally, you can override any value from the YAML in the CLI command. Let's say we want to increase the concurrency:</p><div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#bfc7d5;--prism-background-color:#292d3e"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#bfc7d5"><span class="token plain">bzt path/to/test_scenario.yml -o execution.concurrency=50</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>The test will be executed with a concurrency of 50 users now. This <code>-o</code> switch capability could be leveraged even leveraged in the CI, where we could easily parameterized the execution variables.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-3--monitor-the-test-results">Step 3:  Monitor the Test Results<a href="#step-3--monitor-the-test-results" class="hash-link" aria-label="Direct link to Step 3:  Monitor the Test Results" title="Direct link to Step 3:  Monitor the Test Results">​</a></h3><p>Taurus provides real-time test results and reporting, allowing you to monitor the test results as they happen.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-4-analyse-the-test-results-after-the-test-is-completed">Step 4: Analyse the Test Results After the test is completed<a href="#step-4-analyse-the-test-results-after-the-test-is-completed" class="hash-link" aria-label="Direct link to Step 4: Analyse the Test Results After the test is completed" title="Direct link to Step 4: Analyse the Test Results After the test is completed">​</a></h3><p>Thanks to Taurus modularity, you have several reporting options at your disposal:</p><ol><li>Console Reporter - provides a nice in-terminal dashboard with live test stats and is enabled by default.</li><li>BlazeMeter Reporter - allows you to upload test results to BlazeMeter application, that saves your data and generates interactive UI report with many metrics available. But its free version is very limited though.</li><li>Final Stats Reporter - this rather simple reporter outputs a few basic metrics in the console log after test execution, such as number of requests and failures, various percentiles or latency.</li></ol><p>Alternatively, you can <a href="/docs/integrations/taurus">integrate Taurus with JtlReporter</a>. With JtlReporter, you can quickly and easily create comprehensive performance test reports for your system with metrics, such as requests per second, various percentiles, error rate, and much more. Additionally, you can compare test runs side-by-side, create custom charts with any metrics available, and set up notifications for external services to be informed when a report is processed <a href="/docs/introduction/features">and more</a>.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="taurus" term="taurus"/>
        <category label="jmeter" term="jmeter"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Load Testing Using Locust.io]]></title>
        <id>https://jtlreporter.com/blog/2023/02/01/load-testing-using-locust</id>
        <link href="https://jtlreporter.com/blog/2023/02/01/load-testing-using-locust"/>
        <updated>2023-02-01T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Quick example how to start load testing with Locust.io and generate better performance testing reports for it.]]></summary>
        <content type="html"><![CDATA[<p>Load testing is an important part of software development, as it helps determine an application's performance, scalability, and reliability under normal and expected user loads. Locust is an open-source load testing tool that allows developers to quickly and easily create application performance tests.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-use-locustio">Why Use Locust.io?<a href="#why-use-locustio" class="hash-link" aria-label="Direct link to Why Use Locust.io?" title="Direct link to Why Use Locust.io?">​</a></h2><p>Locust.io is an excellent choice for load testing because it is easy to set up and use. It is also very flexible, allowing you to write your own custom test scripts. Furthermore, it can be run distributed across multiple machines, allowing you to simulate many user traffic and requests.</p><p>The main advantages of Locust are its scalability, flexibility, and ease of use. It is designed to be easy to learn and use, so developers can get up and running quickly. It also provides the ability to scale up the number of users and requests quickly and easily, making it an excellent choice for performance testing.</p><p>You'll need to install it on your system so you'll be able to start with Locust. Locust is available for all major operating systems, including Windows, Mac OS X, and Linux. Once installed, you can use the Locust command line interface to create a test simulation. This is where you will define the number of users and requests you want to simulate. You can also configure each user's behavior, such as the time between each request and the duration of each request.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="example">Example<a href="#example" class="hash-link" aria-label="Direct link to Example" title="Direct link to Example">​</a></h2><p>For this example, we will use a simple FastAPI application and a Locust test script to simulate user traffic and requests.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="fastapi-app">FastAPI App<a href="#fastapi-app" class="hash-link" aria-label="Direct link to FastAPI App" title="Direct link to FastAPI App">​</a></h3><p>First, we will create a FastAPI application to serve as the system under test.</p><div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#bfc7d5;--prism-background-color:#292d3e"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#bfc7d5"><span class="token keyword" style="font-style:italic">import</span><span class="token plain"> uvicorn</span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token keyword" style="font-style:italic">from</span><span class="token plain"> fastapi </span><span class="token keyword" style="font-style:italic">import</span><span class="token plain"> FastAPI</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"> Body</span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">app </span><span class="token operator" style="color:rgb(137, 221, 255)">=</span><span class="token plain"> FastAPI</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token decorator annotation punctuation" style="color:rgb(199, 146, 234)">@app</span><span class="token decorator annotation punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token decorator annotation punctuation" style="color:rgb(199, 146, 234)">get</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token string" style="color:rgb(195, 232, 141)">'/'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token keyword" style="font-style:italic">def</span><span class="token plain"> </span><span class="token function" style="color:rgb(130, 170, 255)">root</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    </span><span class="token keyword" style="font-style:italic">return</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">{</span><span class="token string" style="color:rgb(195, 232, 141)">'message'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(195, 232, 141)">'Hello, world!'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token decorator annotation punctuation" style="color:rgb(199, 146, 234)">@app</span><span class="token decorator annotation punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token decorator annotation punctuation" style="color:rgb(199, 146, 234)">post</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token string" style="color:rgb(195, 232, 141)">'/user'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token keyword" style="font-style:italic">def</span><span class="token plain"> </span><span class="token function" style="color:rgb(130, 170, 255)">create_user</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">username</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> </span><span class="token builtin" style="color:rgb(130, 170, 255)">str</span><span class="token plain"> </span><span class="token operator" style="color:rgb(137, 221, 255)">=</span><span class="token plain"> Body</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    </span><span class="token keyword" style="font-style:italic">return</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">{</span><span class="token string" style="color:rgb(195, 232, 141)">'message'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> </span><span class="token string-interpolation string" style="color:rgb(195, 232, 141)">f'User </span><span class="token string-interpolation interpolation punctuation" style="color:rgb(199, 146, 234)">{</span><span class="token string-interpolation interpolation">username</span><span class="token string-interpolation interpolation punctuation" style="color:rgb(199, 146, 234)">}</span><span class="token string-interpolation string" style="color:rgb(195, 232, 141)"> created!'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token keyword" style="font-style:italic">if</span><span class="token plain"> __name__ </span><span class="token operator" style="color:rgb(137, 221, 255)">==</span><span class="token plain"> </span><span class="token string" style="color:rgb(195, 232, 141)">'__main__'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    uvicorn</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token plain">run</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">app</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><h3 class="anchor anchorWithStickyNavbar_LWe7" id="locust-test-script">Locust Test Script<a href="#locust-test-script" class="hash-link" aria-label="Direct link to Locust Test Script" title="Direct link to Locust Test Script">​</a></h3><p>Now, we will create a Locust test script to simulate user traffic and requests to the FastAPI application.</p><div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#bfc7d5;--prism-background-color:#292d3e"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#bfc7d5"><span class="token keyword" style="font-style:italic">from</span><span class="token plain"> locust </span><span class="token keyword" style="font-style:italic">import</span><span class="token plain"> HttpUser</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"> TaskSet</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"> task</span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token keyword" style="font-style:italic">class</span><span class="token plain"> </span><span class="token class-name" style="color:rgb(255, 203, 107)">MyUser</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">HttpUser</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    </span><span class="token decorator annotation punctuation" style="color:rgb(199, 146, 234)">@task</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">        </span><span class="token keyword" style="font-style:italic">def</span><span class="token plain"> </span><span class="token function" style="color:rgb(130, 170, 255)">index</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">self</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">        self</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token plain">client</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token plain">get</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token string" style="color:rgb(195, 232, 141)">'/'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    </span><span class="token decorator annotation punctuation" style="color:rgb(199, 146, 234)">@task</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">    </span><span class="token keyword" style="font-style:italic">def</span><span class="token plain"> </span><span class="token function" style="color:rgb(130, 170, 255)">create_user</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">self</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">        self</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token plain">client</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token plain">post</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token string" style="color:rgb(195, 232, 141)">'/user'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"> data</span><span class="token operator" style="color:rgb(137, 221, 255)">=</span><span class="token punctuation" style="color:rgb(199, 146, 234)">{</span><span class="token string" style="color:rgb(195, 232, 141)">'username'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(195, 232, 141)">'test_user'</span><span class="token punctuation" style="color:rgb(199, 146, 234)">}</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>This test script will simulate a single user making a request to the root URL of the FastAPI application and creating a user.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="test-script-execution">Test Script Execution<a href="#test-script-execution" class="hash-link" aria-label="Direct link to Test Script Execution" title="Direct link to Test Script Execution">​</a></h3><p>You execute the test script by the following command:
<code>locust -f &lt;test_script.py&gt;</code></p><p>Locust will bring up a user interface available at: <code>http://localhost:8089</code>. From there you can execute the test script.
But before the actual execution, you need to enter the number of users you want to simulate and the spawn rate. Spawn rate means how many users will be started per second.
And last but not least, you will need to enter a host. </p><p>If everything was set up correctly, you just executed your first load test with Locust.io! Awesome!</p><p>Alright, this was a very basic execution which won't be most likely enough for a real word load testing scenario. To get there we will need to generate a bigger load. And for this reason, we'll need to run locust in distributed mode.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="running-locust-distributed">Running Locust Distributed<a href="#running-locust-distributed" class="hash-link" aria-label="Direct link to Running Locust Distributed" title="Direct link to Running Locust Distributed">​</a></h2><p>Locust can also be run and distributed across one or multiple machines. This allows you to simulate a larger amount of user traffic and requests.</p><p>Locust's architecture consists of two nodes - the master and worker nodes. The master node collects statistics from the worker nodes and presents them in the web UI. The worker nodes are responsible for generating user traffic and requests.</p><p>To run the same test in the distributed mode we would use the following commands:</p><p><code>locust -f &lt;test_script.py&gt; --master</code></p><p><code>locust -f &lt;test_script.py&gt; --worker --master-host=localhost</code></p><p>The first command starts the locust master node, while the other connects the worker node to it.
It's recommended to run one worker node per CPU core at max to avoid any issues. Of course, the worker nodes can be started
from different machines, but be aware the test script must be available at all the machines.</p><p>For convenience, Locust can also be run in a Docker container. This allows you to spin up a distributed load test environment quickly, either using
docker-compose or k8s.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="reporting">Reporting<a href="#reporting" class="hash-link" aria-label="Direct link to Reporting" title="Direct link to Reporting">​</a></h2><h3 class="anchor anchorWithStickyNavbar_LWe7" id="csv">CSV<a href="#csv" class="hash-link" aria-label="Direct link to CSV" title="Direct link to CSV">​</a></h3><p>Retrieving Test Statistics in CSV Format
Once the test is complete, you can retrieve the test statistics in CSV format by running the following command:</p><p><code>locust -f &lt;test_script.py&gt; --csv &lt;output_file_name&gt;</code></p><p>Once the test simulation is configured, you can start running the test. Locust will then run the test simulation and provide results about the application's performance. This includes metrics like average response time, requests per second, and error rates. </p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="html-report">HTML Report<a href="#html-report" class="hash-link" aria-label="Direct link to HTML Report" title="Direct link to HTML Report">​</a></h3><p>The HTML report can be downloaded from the locust UI during or after the test script execution. It can provide
basic charts and request stats, that include metrics like requests per second, error rates, and various percentiles for response times.
You can also use the results to identify bottlenecks in your application and make changes to improve performance.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion">​</a></h2><p>Overall, Locust is an excellent choice for performance testing. It is easy to install and use and provides detailed performance metrics and debugging capabilities. It is also highly scalable to test applications with many users and requests.</p><p>Are you looking for an easy way to measure the performance of your application and create detailed <a href="/blog/2023/01/08/performance-test-report">performance test reports</a>? Look no further than JtlReporter!</p><p>With JtlReporter, you can quickly and easily create comprehensive <a href="/blog/2023/01/08/performance-test-report">performance test reports</a> for your system with metrics, such as requests per second, various percentiles, error rate, and much more. Additionally, you can compare test runs side-by-side, create custom charts with any metrics available, and set up notifications for external services to be informed when a report is processed.</p><p>JtlReporter is the perfect way to measure and analyze performance when load testing your application using Locust.io. <a href="/docs/">Try JtlReporter</a> today and get detailed performance test reports with ease!</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="load testing" term="load testing"/>
        <category label="performance testing" term="performance testing"/>
        <category label="Locust.io" term="Locust.io"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Understanding the APDEX Metric]]></title>
        <id>https://jtlreporter.com/blog/understanding-apdex-metric</id>
        <link href="https://jtlreporter.com/blog/understanding-apdex-metric"/>
        <updated>2023-01-16T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Find out what APDEX is and how it can be useful for evaluating your application performance.]]></summary>
        <content type="html"><![CDATA[<p>As technology continues to advance, organizations are becoming increasingly reliant on computer systems to support their operations. To ensure that these systems are performing optimally, it is essential to measure their performance. A good performance test report will contain many metrics, but they can be a bit difficult to understand for non-professional performance testers. That’s when the APDEX (Application Performance Index) metric can become very useful as it is a simple and easy-to-understand metric that helps organizations understand how well their systems are performing and identify areas for improvement. In this blog post, we will explore what the APDEX metric is, how it works, and its advantages and disadvantages.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-the-apdex-metric">What is the APDEX Metric?<a href="#what-is-the-apdex-metric" class="hash-link" aria-label="Direct link to What is the APDEX Metric?" title="Direct link to What is the APDEX Metric?">​</a></h2><p>The APDEX metric is a standardized way of measuring the performance of computer systems. It is based on the response time of a system, which is the amount of time it takes for a system to respond to a user request. The APDEX metric is calculated using a formula that takes into account the number of satisfactory, tolerable, and unsatisfactory responses.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-does-it-work">How Does it Work?<a href="#how-does-it-work" class="hash-link" aria-label="Direct link to How Does it Work?" title="Direct link to How Does it Work?">​</a></h2><p>To calculate the APDEX score, organizations need to set two thresholds for response time. The first threshold is the satisfactory threshold and the second is the tolerable threshold. They are set based on the specific requirements of the system. Once the thresholds are decided, the APDEX formula is applied to the response time data. The APDEX formula is as follows:
APDEX = (Satisfied Count + (Tolerated Count/2)) / Total Count</p><p>Where:</p><ul><li>Satisfied Count is the number of responses that fall within the satisfactory threshold</li><li>Tolerated Count is the number of responses that fall between satisfactory and tolerating thresholds</li><li>Total Count is the total number of responses</li></ul><p>The resulting score ranges from 0 to 1, with 1 being the best possible score. Based on the APDEX score the application’s performance is assessed:</p><ul><li>Excellent, 1-0.94</li><li>Good, 0.93-0.85</li><li>Fair, 0.84-0.70</li><li>Poor, 0.69-0.50</li><li>Unacceptable, below 0.50</li></ul><h2 class="anchor anchorWithStickyNavbar_LWe7" id="advantages-of-the-apdex-metric">Advantages of the APDEX Metric<a href="#advantages-of-the-apdex-metric" class="hash-link" aria-label="Direct link to Advantages of the APDEX Metric" title="Direct link to Advantages of the APDEX Metric">​</a></h2><p>The APDEX metric has several advantages that make it a popular choice for application performance measurement. Some of these advantages include:
Simplicity: The APDEX metric is easy to understand and use, making it accessible to organizations of all sizes and technical abilities.
Standardization: The APDEX metric is a standardized tool, which makes it easy to compare the performance of different systems.
Flexibility: The threshold for response time can be adjusted to suit the specific requirements of the system, which means that the APDEX metric can be applied to a wide range of systems.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="disadvantages-of-the-apdex-metric">Disadvantages of the APDEX Metric<a href="#disadvantages-of-the-apdex-metric" class="hash-link" aria-label="Direct link to Disadvantages of the APDEX Metric" title="Direct link to Disadvantages of the APDEX Metric">​</a></h2><p>Despite its popularity, the APDEX metric has also disadvantages that must be taken into account. Some of these disadvantages include:
Lack of Variability: The APDEX metric does not account for the variability of performance over time, which means that it may not capture performance issues that occur at specific times or under certain conditions.
Limited Scope: The APDEX metric is only based on the response time of a system, which is not the only factor that contributes to the user experience. Factors such as the availability of the system, reliability of the system, and functionality of the system also play a significant role in determining the user experience.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion">​</a></h2><p>The APDEX metric can be a useful tool for measuring the performance of computer systems. It is easy to use, standardized, and flexible. However, it also has some limitations that must be considered before using it. Organizations should use a combination of metrics to get a more complete picture of system performance.</p><p>In recent release of JtlReporter the support for measuring the APDEX score was added. You can get the APDEX score for you JMeter or Locust.io test reports from now on - either <a href="/docs/">get started with JtlReporter</a> or upgrade your instance to the latest version. The metric was made optional and can be turned on in the scenario setting, while both threshold values are adjustable according to your specification and requirements of your system.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="metrics" term="metrics"/>
        <category label="apdex" term="apdex"/>
        <category label="JMeter" term="JMeter"/>
        <category label="Locust.io" term="Locust.io"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Performance Testing Metrics]]></title>
        <id>https://jtlreporter.com/blog/2023/01/09/performance-metrics</id>
        <link href="https://jtlreporter.com/blog/2023/01/09/performance-metrics"/>
        <updated>2023-01-09T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Learn about various performance testing metrics and how they are useful while analyzing the performance test report.]]></summary>
        <content type="html"><![CDATA[<p>Performance testing metrics are measurements that are used to evaluate the performance of a system or application under a given workload.
These metrics help identify any issues or bottlenecks in the system and provide insights on how to improve its performance.</p><p>There are various performance testing metrics that can be used, depending on the specific goals and objectives of the test. Some common performance testing metrics include:</p><ol><li><strong>Response time</strong>: This is the amount of time it takes for a request to be processed and for a response to be returned. A high response time can indicate that the system is overloaded or that there are bottlenecks in the system. For performance analysis it is very useful to use <a href="/blog/2023/07/07/performance-testing-metric-percentiles">percentiles</a>.
The most common <a href="/blog/2023/07/07/performance-testing-metric-percentiles">percentiles</a> are p90, p95 and p99.</li><li><strong>Throughput</strong>: This is the number of requests that a system can handle per unit of time. A high throughput is desirable, as it indicates that the system can handle a large volume of traffic. </li><li><strong>Error rate</strong>: This is the percentage of requests that result in an error. A high error rate can indicate that the system is not functioning properly and needs to be optimized. </li><li><strong>Resource utilization</strong>: This is the percentage of a system's resources (such as CPU, memory, and network bandwidth) that are being used during the test. High resource utilization can indicate that the system is reaching its limits and may need to be scaled.</li></ol><p>It's important to choose the right performance testing metrics for your specific goals and objectives. For example, if you're testing the performance of a web application, you may want to focus on metrics such as response time and error rate. If you're testing the performance of a database, you may want to focus on metrics such as throughput and resource utilization.</p><p>Performance testing metrics are an essential part of evaluating the performance of a system or application. By choosing the right metrics and monitoring them during the testing process, you can identify any issues or bottlenecks and make informed decisions on how to improve the system's performance.</p><p>JtlReporter can help you to gather all the above-mentioned (and many more!) metrics from your tests created with JMeter, Loucst.io and other performance testing tools. But it does not stop there. JtlReporter gives you the ability to customize the displayed metrics.
Not to mention that the metrics are also displayed in comprehensive graphs. You can even easily compare the metrics with your other performance testing runs to find out any changes in performance of your application.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="metrics" term="metrics"/>
        <category label="JMeter" term="JMeter"/>
        <category label="Locust.io" term="Locust.io"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Performance Test Report]]></title>
        <id>https://jtlreporter.com/blog/2023/01/08/performance-test-report</id>
        <link href="https://jtlreporter.com/blog/2023/01/08/performance-test-report"/>
        <updated>2023-01-08T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Find out what performance testing report should contain and how it can help you to evaluate performance of your application.]]></summary>
        <content type="html"><![CDATA[<p>Performance testing is an important aspect of software development, as it helps ensure that a system or application can handle the expected workload and user traffic.
A performance testing report is a document that outlines the results of a performance test and provides insights on the system's performance under various conditions.</p><p><img loading="lazy" alt="Report" src="/assets/images/report-02c80645e86ca57ff2d5f8b3dacf14cc.png" width="2267" height="1282" class="img_ev3q"></p><p>There are various types of performance tests, including load testing, stress testing, and endurance testing. Load testing involves simulating a normal workload on the system to ensure it can handle the expected traffic. Stress testing involves increasing the workload beyond normal levels to see how the system performs under increased demand. Endurance testing involves running the system at a high workload for an extended period of time to ensure it can sustain that level of performance.</p><p>A performance testing report should include a summary of the test objectives, the testing environment, and the test results. It should also include any issues or bottlenecks that were identified during the testing process and provide recommendations for improvement.</p><p>One key aspect of a performance testing report is the use of performance metrics. These metrics can help identify areas of the system that may need improvement and provide a baseline for future performance testing. Common performance metrics include response time (90, 95 and 99 <a href="/blog/2023/07/07/performance-testing-metric-percentiles">percentiles</a>, average, min and max), throughput, error rate, connection time, networks stats. All of these metrics are provided in JtlReporter. The more, you can adjust the displayed metrics as wanted - by default the application shows all the metrics in the table, but if you feel it's too overwhelming you can easily limit it.</p><p><img loading="lazy" alt="Request stats" src="/assets/images/request_stats_table-97134525d0ac593ffaebac4e3c85498f.png" width="2265" height="265" class="img_ev3q"></p><p>Another important aspect of a performance testing report is the presentation of the results. The report should include graphs and charts to clearly show the test results and make it easy for readers to understand the findings. JtlReport renders all basic graphs for overall performance, but also for individual labels and its various metrics. But it does not stop here. It even adds a possibility to display a trends for individual labels - you will get a history timeline of a performance per label.</p><p><img loading="lazy" alt="Label trend" src="/assets/images/label_trend-9ad468053aee2eefd62744cfd67f7380.png" width="2259" height="563" class="img_ev3q"></p><p>But it also gives you the possibility to create custom charts where you can combine all the available metrics as wanted to find the desired correlation. This custom chart is saved per user session and loaded when report is opened.</p><p>Performance testing report is a valuable document that provides insights on the performance of a system or application under various conditions. It can help identify issues and bottlenecks, provide recommendations for improvement, and serve as a baseline for future performance testing.</p><p>Do you want to get more from your JMeter or Locust.io performance test? <a href="/docs/">Get started</a> with JtlReporter.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
        <category label="performance testing" term="performance testing"/>
        <category label="report" term="report"/>
        <category label="JMeter" term="JMeter"/>
        <category label="Locust.io" term="Locust.io"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Virtual Users vs RPS]]></title>
        <id>https://jtlreporter.com/blog/2021/04/21/virtual-users-vs-rps</id>
        <link href="https://jtlreporter.com/blog/2021/04/21/virtual-users-vs-rps"/>
        <updated>2021-04-21T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Understand the difference between virtual users and RPS (requests per seconds) in performance testing reports.]]></summary>
        <content type="html"><![CDATA[<p>Recently I spotted that some people are confused about the requests per second metric and its correlation to the virtual users. Namely, I was asked how is it possible that 10 VU are generating 15.4 RPS, where is the decimal coming from? I did not realize it at first, but when I started playing with performance testing tools a few years ago I was puzzling it over as well. So I would like to use this blog post as an opportunity to shed a bit of light on it and help newcomers in the performance testing domain to properly analyze test performance test report. Let's dive into it.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-rps-requests-per-second">What is RPS (requests per second)?<a href="#what-is-rps-requests-per-second" class="hash-link" aria-label="Direct link to What is RPS (requests per second)?" title="Direct link to What is RPS (requests per second)?">​</a></h2><p>RPS is one of the essential performance metrics. It is quite often referred to as throughput, and I like this term better, as it is self-explanatory. It simply tells us how many requests per second the system under test can handle. The throughput is calculated as the total of requests within an interval. Commonly, performance testing tools give us some kind of live preview of currently running tests, the output metrics are calculated within a certain interval. For example, imagine we use a load testing tool and it reports the metrics every 15 seconds. Let’s say we have a running test and for the last 15 seconds, it sent and received 231 requests during this interval. The reported RPS for the last interval would be 15.4 RPS because 231 (total number of the requests) / 15 (interval) equals 15.4 RPS.
This does not mean the tested system maintained the 15.4 RPS consistently within the whole 15 seconds interval. During that period, the RPS could have been changing and reach a higher RPS than the stated 15.4 RPS. Of course, the same logic applies to the ended test as well. But I admit it might look odd to see decimals in RPS for the first time. Just keep in mind, although these metrics might look like actual numbers, they are usually calculated for an interval longer than one second. </p><p>As stated before, the RPS is a crucial metric that reveals fundamental information about the tested system. This metric should only be used in correlation to any response time metrics (e.g.: 90 percentile, 95 percentile, and so on). Every system has a critical point in terms of throughput. Once the system reaches the critical point, it might keep the RPS around the same level, but the response times go up. For this reason, the 15RPS while the 90 percentile equals 5ms means something very different when compared to 15RPS while the 90 percentile response time equals 20ms. For this reason, it is important to conduct multiple test runs. And here the virtual users come into play.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-are-virtual-users-">What are virtual users ?<a href="#what-are-virtual-users-" class="hash-link" aria-label="Direct link to What are virtual users ?" title="Direct link to What are virtual users ?">​</a></h2><p>A virtual user mimics the expected client behavior of the tested system - this could be any client, e.g.: end-user of a web application or a backend application talking to a database, and so on. The typical virtual user life cycle looks like this - it picks up the scripted tasks and performs them, once it finishes all of them it will start the loop again. And it keeps it going until the test is terminated. It is important to realize that the tasks are not performed at the same time by all virtual users. This is determined by several things such as scripted wait times between tasks, actual response times of the application, ramp-up time settings (virtual user spawn rate), hardware utilization of the host, to name a few. And as a result, the load generated by the virtual users gets spread across. To illustrate this let's use an example - imagine you and your friend will pretend a load test using your mobile phones. The scenario would be the following: 1) opening the homepage, 2) opening the first item, 3) adding it into a cart. If you try to do it you realize you are not performing the actions at the same time. The application response time will be different, the browser rendering time will vary as well. Thus, one of you might finish the above-mentioned scenario in 5 seconds, but to the other one, it might take 7 seconds. Imagine you are doing another iteration. This time your phone freezes for a while for some reason, and it takes you 10 seconds to finish the scenario. While your friend finishes it only in 6 seconds. The virtual users behave in the same way. For this reason, we should incorporate wait/think time in our performance scenario to mimic this kind of arbitrariness. As a result, the load generated by virtual users gets spread across in time.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-does-the-number-of--virtual-users-impact-the-rps">How does the number of  virtual users impact the RPS?<a href="#how-does-the-number-of--virtual-users-impact-the-rps" class="hash-link" aria-label="Direct link to How does the number of  virtual users impact the RPS?" title="Direct link to How does the number of  virtual users impact the RPS?">​</a></h2><p>The number of virtual users affects how the system under test will be loaded, but the number of set virtual users does not mean that they will generate the same amount of RPS because the user load gets spread across as we know from the previous paragraph. The number of virtual users impacts the throughput of a system under test. Let's imagine we do load testing of an e-shop application now. Generating only 50 virtual users would result in 100 RPS and the 90 percentile response time is 8ms. In the second run, we decide to increase the number of virtual users to 500. Now the RPS is 500 and the 90 percentile kept the same response time. This means we did not reach the critical point yet, as the application scales its performance based on the demands so far. Let's do another test with 750VU. This time the measured RPS is 530 and the 90 percentile increased to 30ms. We reached a critical point for the throughput of the tested system. From now on if we keep the number of virtual users increasing, the response times will increase accordingly. If we would run another test with 1500VU, we could probably see very slow response times and some errors due to them as the system would be overwhelmed by the number of open connections and the number of requests it needs to process.</p><p>I hope it is a bit more clear now how the virtual users and some other factors impact the throughput and how to interpret the outcomes of the performance testing measurements.</p>]]></content>
        <author>
            <name>Luděk Nový</name>
            <uri>https://ludeknovy.tech</uri>
        </author>
    </entry>
</feed>