<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>85111</bug_id>
          
          <creation_ts>2012-04-27 16:42:58 -0700</creation_ts>
          <short_desc>PerfTestRunner.computeStatistics incorrectly calculates min, max and median</short_desc>
          <delta_ts>2012-04-30 08:53:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="WebKit Review Bot">webkit.review.bot</reporter>
          <assigned_to name="Tom Zakrajsek">tomz</assigned_to>
          <cc>rniwa</cc>
    
    <cc>tomz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>612016</commentid>
    <comment_count>0</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-27 16:42:58 -0700</bug_when>
    <thetext>PerfTestRunner.computeStatistics incorrectly calculates min, max and median
Requested by tomz on #webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612017</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zakrajsek">tomz</who>
    <bug_when>2012-04-27 16:44:40 -0700</bug_when>
    <thetext>The data.sort() in this routine is doing an alphabetic sort.  The dataset [1 3 7 10] shows the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612021</commentid>
    <comment_count>2</comment_count>
      <attachid>139308</attachid>
    <who name="Tom Zakrajsek">tomz</who>
    <bug_when>2012-04-27 16:49:34 -0700</bug_when>
    <thetext>Created attachment 139308
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612024</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zakrajsek">tomz</who>
    <bug_when>2012-04-27 16:55:16 -0700</bug_when>
    <thetext>I&apos;m not sure where tests for this should go but we most *certainly* need them for the statistics package.  I&apos;ll be happy to write some.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612034</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-04-27 17:09:20 -0700</bug_when>
    <thetext>Unfortunately we don&apos;t have any tests for this, and that&apos;s why we have this bug. Maybe we can add something in LayoutTests/fast/harness/ that pulls this file?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612037</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-04-27 17:11:51 -0700</bug_when>
    <thetext>Now it makes sense that some of min/max/stdev looked bogus. But this problem should go away once we start importing all values. Still nice to fix it here thouh.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612173</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Zakrajsek">tomz</who>
    <bug_when>2012-04-27 23:30:42 -0700</bug_when>
    <thetext>In that case, could you r+ this and I&apos;ll get the tests in ASAP?  I&apos;d rather not hold off while we&apos;re continuing to generate incorrect data.  I tested the fix manually.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612213</commentid>
    <comment_count>7</comment_count>
      <attachid>139308</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-04-28 02:26:42 -0700</bug_when>
    <thetext>Comment on attachment 139308
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=139308&amp;action=review

&gt; PerformanceTests/ChangeLog:9
&gt; +        Reviewed by NOBODY (OOPS!).

This line should appear before the description.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612440</commentid>
    <comment_count>8</comment_count>
    <who name="Tom Zakrajsek">tomz</who>
    <bug_when>2012-04-29 11:21:29 -0700</bug_when>
    <thetext>Committed r115598: &lt;http://trac.webkit.org/changeset/115598&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>139308</attachid>
            <date>2012-04-27 16:49:34 -0700</date>
            <delta_ts>2012-04-30 08:53:55 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-85111-20120427164932.patch</filename>
            <type>text/plain</type>
            <size>1385</size>
            <attacher name="Tom Zakrajsek">tomz</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE1NTE0CmRpZmYgLS1naXQgYS9QZXJmb3JtYW5jZVRlc3Rz
L0NoYW5nZUxvZyBiL1BlcmZvcm1hbmNlVGVzdHMvQ2hhbmdlTG9nCmluZGV4IGI5MGE4MTMyNDVh
NjA1NTc4YzRkNmNmMmU0ZGU3ZjEyNzY2YWIyMmIuLmVlY2IzNzMzNzE0NDNkYmJmMWZhZDYyZjk0
ZDc2NWMxOWY5MGRkMTggMTAwNjQ0Ci0tLSBhL1BlcmZvcm1hbmNlVGVzdHMvQ2hhbmdlTG9nCisr
KyBiL1BlcmZvcm1hbmNlVGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTItMDQt
MjcgIFRvbSBaYWtyYWpzZWsgIDx0b216QGNvZGVhdXJvcmEub3JnPgorCisgICAgICAgIFBlcmZU
ZXN0UnVubmVyLmNvbXB1dGVTdGF0aXN0aWNzIGluY29ycmVjdGx5IGNhbGN1bGF0ZXMgbWluLCBt
YXggYW5kIG1lZGlhbgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9ODUxMTEKK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