Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60541

Wrong 90%Line Calculation in the Performance Report

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • performance-plugin
    • None

      Plugin version: 3.17

       

      The 90th percentile value is not calculated correctly when the index is not an integer.

      For example, if we have the below values as response times 

      1698, 1702, 1754, 1766, 1774, 1805, 1821, 1892, 2069, 2345, 2643, 2920, 4511, 5075
       
      Compute the position of the p^th^ percentile (index i):
      i = (p / 100) * n), where p = 90 and n = 14
      i = (90 / 100) * 14 = 12.6
       
      The index i is not an integer, we need to round up the index (i = 13) ⇒ the 90^th^ percentile is the value in 13^th^ position, or 4511
       
      But in the report, it is raking 12th position or 2920 as 90% value

            undera Andrey Pokhilko
            ganginenisarath sarath gangineni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: