You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/07/31 23:10:00 UTC

[09/30] bear commit: updated refs/heads/import-master to 5f99806

Add more calculations to percentiles proplist.

The 90th percentile is obvious; the 50th has been included to simplify
access for end-users.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-bear/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-bear/commit/6263a557
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-bear/tree/6263a557
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-bear/diff/6263a557

Branch: refs/heads/import-master
Commit: 6263a5579eab998f034d9221d662df1e8da6a6ba
Parents: 0da736b
Author: Benjamin Anderson <b...@banjiewen.net>
Authored: Fri Feb 22 11:20:00 2013 -0800
Committer: Benjamin Anderson <b...@banjiewen.net>
Committed: Fri Feb 22 11:50:50 2013 -0800

----------------------------------------------------------------------
 src/bear.erl | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-bear/blob/6263a557/src/bear.erl
----------------------------------------------------------------------
diff --git a/src/bear.erl b/src/bear.erl
index 65b2831..7039910 100644
--- a/src/bear.erl
+++ b/src/bear.erl
@@ -55,7 +55,9 @@ get_statistics(Values) when length(Values) < ?STATS_MIN ->
      {kurtosis, 0.0},
      {percentile,
       [
+       {50, 0.0},
        {75, 0.0},
+       {90, 0.0},
        {95, 0.0},
        {99, 0.0},
        {999, 0.0}
@@ -82,7 +84,9 @@ get_statistics(Values) ->
      {kurtosis, kurtosis(Scan_res, Scan_res2)},
      {percentile,
       [
+       {50, percentile(SortedValues, Scan_res, 0.50)},
        {75, percentile(SortedValues, Scan_res, 0.75)},
+       {90, percentile(SortedValues, Scan_res, 0.90)},
        {95, percentile(SortedValues, Scan_res, 0.95)},
        {99, percentile(SortedValues, Scan_res, 0.99)},
        {999, percentile(SortedValues, Scan_res, 0.999)}