@@ -149,7 +149,7 @@ options to control number of threads, iterations, which benchmarks to run etc:
149
149
--time, -t : Report time (sec) instead of score.
150
150
--quick, -q : Quick benchmark run (implies -t).
151
151
--no_mce : Do not run under MCE::Loop (implies -j 1).
152
- --scale <i>, -s <i> : Scale the bench workload by x times.
152
+ --scale <i>, -s <i> : Scale the bench workload by x times (incompatible with -q) .
153
153
--skip_bio : Skip BioPerl benchmarks.
154
154
--skip_prove : Skip Moose prove benchmark.
155
155
--time_piece : Run optional Time::Piece benchmark (see benchmark details).
@@ -477,7 +477,14 @@ sub calc_scalability {
477
477
print ((" -" x 40 )." \n " );
478
478
my $avg1 = min_max_avg($stats1 -> {total }-> {$display });
479
479
my $avg2 = min_max_avg($stats2 -> {total }-> {$display });
480
- print " DKbench summary ($cnt benchmarks, $stats2 ->{threads} threads):\n " ;
480
+ print " DKbench summary ($cnt benchmark" ;
481
+ print " s" if $cnt > 1;
482
+ print " x$opt ->{scale} scale" if $opt -> {scale } && $opt -> {scale } > 1;
483
+ print " , $opt ->{iter} iterations" if $opt -> {iter } && $opt -> {iter } > 1;
484
+ print " , $stats2 ->{threads} thread" ;
485
+ print " s" if $stats2 -> {threads } > 1;
486
+ print " ):\n " ;
487
+ $opt -> {f } .= " s" if $opt -> {time };
481
488
print pad_to(" Single:" ).sprintf ($opt -> {f }, $avg1 )." \n " ;
482
489
print pad_to(" Multi:" ).sprintf ($opt -> {f }, $avg2 )." \n " ;
483
490
my @newperf = Benchmark::DKbench::drop_outliers(\@perf , -1);
@@ -1045,7 +1052,7 @@ sub total_stats {
1045
1052
my $benchmarks = benchmark_list();
1046
1053
my $display = $opt -> {time } ? ' times' : ' scores' ;
1047
1054
my $title = $opt -> {time } ? ' Time (sec)' : ' Score' ;
1048
- print " Aggregates:\n " .pad_to(" Benchmark" ,24).pad_to(" Avg $title " ).pad_to(" Min $title " ).pad_to(" Max $title " );
1055
+ print " Aggregates ( $opt ->{iter} iterations) :\n " .pad_to(" Benchmark" ,24).pad_to(" Avg $title " ).pad_to(" Min $title " ).pad_to(" Max $title " );
1049
1056
print pad_to(" stdev %" ) if $opt -> {stdev };
1050
1057
print pad_to(" Pass %" ) unless $opt -> {time };
1051
1058
print " \n " ;
0 commit comments