Changeset 23398 for trunk/Nebulous/scripts/stats.pl
- Timestamp:
- Mar 18, 2009, 11:16:50 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/scripts/stats.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/scripts/stats.pl
r23146 r23398 33 33 my $stat = Statistics::Descriptive::Sparse->new(); 34 34 $stat->add_data(@$duration); 35 printf("%-40s %f\n", "$method: mean duration:", $stat->mean());35 printf("%-40s : %f\n", "$method - mean duration", $stat->mean()); 36 36 } 37 37 { … … 40 40 $stat->add_data(@$times); 41 41 $total_stat->add_data(@$times); 42 printf("%-40s %f\n","$method: calls/s:", $stat->count / ($stat->max - $stat->min));42 printf("%-40s : %f\n","$method - calls/s", $stat->count / ($stat->max - $stat->min)); 43 43 } 44 44 } 45 45 46 print "max : ", $total_stat->max, "\n"; 47 print "min : ", $total_stat->min, "\n"; 48 print "total s : ", ($total_stat->max - $total_stat->min), "\n"; 49 print "count : ", $total_stat->count, "\n"; 50 print "total : calls/s: ", $total_stat->count / ($total_stat->max - $total_stat->min), "\n"; 46 print "\n"; 47 printf("%-40s : %f\n", "first timestamp", $total_stat->min); 48 printf("%-40s : %f\n", "last timestamp", $total_stat->max); 49 printf("%-40s : %f\n", "total wallclock seconds", ($total_stat->max - $total_stat->min)); 50 printf("%-40s : %f\n", "total call count", $total_stat->count); 51 printf("%-40s : %f\n", "total calls/s:", $total_stat->count / ($total_stat->max - $total_stat->min));
Note:
See TracChangeset
for help on using the changeset viewer.
