Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to calculate percentage improvement in response time for performance testing

How should I calculate the percentage improvement in response time.

I am getting 15306 ms response time for old code and 799 ms response for the updated code. What will be the percentage improvement in response time?

like image 304
Brahmakumar M Avatar asked Feb 09 '15 06:02

Brahmakumar M


People also ask

How do you calculate percentage increase in response time?

((old time - new time) / old time) * 100 This formula will give the Percentage Decreased in New Response time. Save this answer.

How do you calculate response time?

Average response time = Total time taken to respond during the selected time period divided by the number of responses in the selected time period. Response time is calculated for every agent response rather than for every ticket.

How do you calculate percentage progress?

To calculate an accurate percentage, break your project into tasks to complete. For example, if your project has 30 tasks, and the team has completed 16 tasks, you can divide 16 by 30 to determine the project complete percentage. You can track this on spreadsheets, charts or through business reporting methods.


1 Answers

There are two ways to interpret "percentage improvement in response time". One is the classic and ubiquitous formula for computing a percentage change in a data point from an old value to a new value, which looks like this:

(new - old)/old*100% 

So for your case:

(799 - 15306)/15306*100% = -94.78% 

That means the new value is 94.78% smaller (faster, since we're talking about response time) than the old value.

The second way of interpreting the statement is to take the percentage of the old value that the new value "covers" or "reaches":

new/old*100% 

For your case:

799/15306*100% = 5.22% 

That means the new value is just 5.22% of the old value, which, for response time, means it takes just 5.22% of the time to respond, compared to the old response time.

The use of the word "improvement" suggests that you want the 94.78% value, as that shows how much of the lag in the old response time was eliminated ("improved") by the new code. But when it comes to natural language, it can be difficult to be certain about precise meaning without careful clarification.

like image 84
bgoldst Avatar answered Sep 26 '22 02:09

bgoldst