Title: [192965] trunk/Websites/perf.webkit.org
- Revision
- 192965
- Author
- [email protected]
- Date
- 2015-12-02 14:09:16 -0800 (Wed, 02 Dec 2015)
Log Message
Perf dashboard should avoid overflow during geometric mean computation
https://bugs.webkit.org/show_bug.cgi?id=151773
Reviewed by Chris Dumez.
* public/include/report-processor.php:
Modified Paths
Diff
Modified: trunk/Websites/perf.webkit.org/ChangeLog (192964 => 192965)
--- trunk/Websites/perf.webkit.org/ChangeLog 2015-12-02 22:04:30 UTC (rev 192964)
+++ trunk/Websites/perf.webkit.org/ChangeLog 2015-12-02 22:09:16 UTC (rev 192965)
@@ -1,3 +1,12 @@
+2015-12-02 Ryosuke Niwa <[email protected]>
+
+ Perf dashboard should avoid overflow during geometric mean computation
+ https://bugs.webkit.org/show_bug.cgi?id=151773
+
+ Reviewed by Chris Dumez.
+
+ * public/include/report-processor.php:
+
2015-11-30 Ryosuke Niwa <[email protected]>
Perf dashboard should extend baseline and target to the future
Modified: trunk/Websites/perf.webkit.org/public/include/report-processor.php (192964 => 192965)
--- trunk/Websites/perf.webkit.org/public/include/report-processor.php 2015-12-02 22:04:30 UTC (rev 192964)
+++ trunk/Websites/perf.webkit.org/public/include/report-processor.php 2015-12-02 22:09:16 UTC (rev 192965)
@@ -360,7 +360,7 @@
case 'Arithmetic':
return array_sum($values) / count($values);
case 'Geometric':
- return pow(array_product($values), 1 / count($values));
+ return exp(array_sum(array_map(log, $values)) / count($values));
case 'Harmonic':
return count($values) / array_sum(array_map(function ($x) { return 1 / $x; }, $values));
case 'Total':
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes