How to calculate percentage improvement in response time for performance testing

后端 未结 7 2044
梦如初夏
梦如初夏 2021-01-29 19:55

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 th

7条回答
  •  孤街浪徒
    2021-01-29 20:26

    The formula for finding the percentage of reduction is:

    P = a/b × 100
    

    Where P is the percentage of reduction, a is the amount of the reduction and b is the original amount that was reduced.

    So to calculate a you do: old - new wichi will translate into:

    P = ((OLD - NEW)/OLD)*100
    

提交回复
热议问题