Hidden Problem That Makes Most Load Tests Unrealistic

You execute a load test using 100 virtual users. The test generates 1000 requests per second. In production, the same system only receives around 80 requests per second. So what happened? The answe...

By · · 1 min read
Hidden Problem That Makes Most Load Tests Unrealistic

Source: DEV Community

You execute a load test using 100 virtual users. The test generates 1000 requests per second. In production, the same system only receives around 80 requests per second. So what happened? The answer is simple — think time. If you don't use it, your load test might act like robots instead of real users, and the results could be totally wrong. Let’s break down why think time is important and how to use it correctly during performance testing. What Is Think Time? Think time is the amount of time a real user takes between performing actions in an application. In real life, users don't immediately perform the next request after receiving a response. They usually: read the page scroll through content think about what to click enter data compare options navigate through menus All these actions take time. Performance tests that ignore this behavior produce unrealistic load patterns. The Problem Without Think Time User opens a page User clicks a button User searches for a product If your script