IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2009, 11:16:50 AM (17 years ago)
Author:
jhoblitt
Message:

update output formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/scripts/stats.pl

    r23146 r23398  
    3333        my $stat = Statistics::Descriptive::Sparse->new();
    3434        $stat->add_data(@$duration);
    35         printf("%-40s %f\n", "$method: mean duration: ", $stat->mean());
     35        printf("%-40s : %f\n", "$method - mean duration", $stat->mean());
    3636    }
    3737    {
     
    4040        $stat->add_data(@$times);
    4141        $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));
    4343    }
    4444}
    4545
    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";
     46print "\n";
     47printf("%-40s : %f\n", "first timestamp", $total_stat->min);
     48printf("%-40s : %f\n", "last timestamp", $total_stat->max);
     49printf("%-40s : %f\n", "total wallclock seconds", ($total_stat->max - $total_stat->min));
     50printf("%-40s : %f\n", "total call count", $total_stat->count);
     51printf("%-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.