diff --git a/testing/performance/talos/page_load_test/framecycler.html b/testing/performance/talos/page_load_test/framecycler.html index 27e7b99d789..f09c9b3ee97 100644 --- a/testing/performance/talos/page_load_test/framecycler.html +++ b/testing/performance/talos/page_load_test/framecycler.html @@ -41,6 +41,10 @@ var index = 0; var cycle = 0; + function compareNumbers(a, b) { + return a - b; + } + // returns an object with the following properties: // min : min value of array elements // max : max value of array elements @@ -67,14 +71,14 @@ // median sorted_ary = ary.concat(); - sorted_ary.sort(); + sorted_ary.sort(compareNumbers); // remove longest run sorted_ary.pop(); if (sorted_ary.length%2) { r.median = sorted_ary[(sorted_ary.length-1)/2]; }else{ var n = Math.floor(sorted_ary.length / 2); - r.median = (sorted_ary[n] + sorted_ary[n + 1]) / 2; + r.median = (sorted_ary[n - 1] + sorted_ary[n]) / 2; } // ignore max value when computing mean and stddev diff --git a/testing/performance/talos/page_load_test/report.html b/testing/performance/talos/page_load_test/report.html index cc565d7dabb..f3e83b160f3 100755 --- a/testing/performance/talos/page_load_test/report.html +++ b/testing/performance/talos/page_load_test/report.html @@ -69,7 +69,7 @@
Page | Min | Max | Mean | Std | Times... | |
---|---|---|---|---|---|---|
Page | Min | Max | Mean | Std | Median | Times... |