Skip to content

Commit

Permalink
Use the median, average means nothing when a single call takes forever.
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Jul 6, 2013
1 parent 072b9c6 commit 4cf4954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func avg(list []time.Duration) time.Duration {

func (s *stats) String() string {

total := float64(s.n) * s.avg.Seconds()
total := float64(s.n) * s.median.Seconds()
totalMem := s.n * s.size
persec := float64(s.n) / total
persecMem := float64(totalMem) / total
Expand Down

0 comments on commit 4cf4954

Please sign in to comment.