File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -535,19 +535,13 @@ public void ViewPriority() {
535
535
public void RunBenchmark ( ) {
536
536
var summary = BenchmarkRunner . Run < DeduplicationBenchmarks > ( ) ;
537
537
538
- Action < string > writeBoth = line => {
539
- _writer . WriteLine ( line ) ;
540
- Console . WriteLine ( line ) ;
541
- } ;
542
-
543
538
foreach ( var benchmark in summary . Benchmarks ) {
544
539
var report = summary . Reports [ benchmark ] ;
545
540
546
- writeBoth ( report . ToString ( ) ) ;
547
- }
541
+ _writer . WriteLine ( report . ToString ( ) ) ;
548
542
549
- foreach ( var line in summary . Table . FullContentWithHeader ) {
550
- writeBoth ( string . Join ( " \t " , line ) ) ;
543
+ var benchmarkMedianMilliseconds = report . ResultStatistics . Median / 1000000 ;
544
+ _writer . WriteLine ( $ " { benchmark . ShortInfo } - { benchmarkMedianMilliseconds : 0.00 } ms" ) ;
551
545
}
552
546
}
553
547
You can’t perform that action at this time.
0 commit comments