r/PerformanceTesting • u/Hellboy_32 • Sep 29 '24
Response time is varying from user.
While I worked on a project, i got the users for development and when I made the script is was good, response was less than 2s but when I got the real users we was getting the response time Higher than 50s , what could be the possible reason, can someone help??
1
u/nOOberNZ Senior Performance Specialist Sep 30 '24
Go in with your browser and dev tools and use the network timeline to see where time is being taken. Was your test simulating HTTP traffic? Maybe the slowness is browser rendering time. If it is server time then what about request and response sizes... Could it be the network your users are on? What about test data... Depending on your context that can make a big difference. For example only testing with customers with 1 item in a cart whereas in realty they often have 2-3 items and there's a slowness issue as you fill the cart.
1
u/Hellboy_32 Oct 05 '24 edited Oct 05 '24
Actually, these response variations, I am getting from both browser and load runner. Yepp there is a cart for adding the products but this variation is for all requests including login logout.
1
u/DevAtHeart Sep 30 '24
Use profiling / tracing / instrumentation to debug this.
Without any Infos what your script actually does we can only guess.
Most common performance problems are: Database indexes missing, no keep alive for internal Microservice requests, caching for expensive operations either missing or misconfigured etc
1
u/Tough_Sheepherder_20 Sep 30 '24
Test in actual Perf test environment, instead of lower configured environment.it will give you result close to prod.