@@ -57,7 +57,7 @@ private IEnumerable<string> PerMethod(Summary summary)
5757 var columnChartData = new TraceInfo ( )
5858 {
5959 Keys = new [ ] { report . BenchmarkCase . Descriptor . WorkloadMethodDisplayInfo } ,
60- Values = new [ ] { report . Success ? ConvertNanosToMs ( report . ResultStatistics . Mean ) : 0 }
60+ Values = new [ ] { report . Success ? report . ResultStatistics . Mean : 0 }
6161 } ;
6262
6363 ColumnChartRenderer . Render ( new [ ] { columnChartData } , title , file , Info . Width , Info . Height , false ) ;
@@ -80,7 +80,7 @@ private IEnumerable<string> PerJob(Summary summary)
8080 {
8181 TraceName = r . BenchmarkCase . Job . ResolvedId ,
8282 Keys = new [ ] { r . BenchmarkCase . Descriptor . WorkloadMethodDisplayInfo } ,
83- Values = new [ ] { r . Success ? ConvertNanosToMs ( r . ResultStatistics . Mean ) : 0 }
83+ Values = new [ ] { r . Success ? r . ResultStatistics . Mean : 0 }
8484 } ) . GroupBy ( r => r . TraceName ) ;
8585
8686 var colors = ColorMap . GetColorList ( Info ) ;
@@ -127,7 +127,7 @@ private IEnumerable<string> NoParameterCombined(Summary summary)
127127 {
128128 job = r . BenchmarkCase . Job . ResolvedId ,
129129 name = r . BenchmarkCase . Descriptor . WorkloadMethodDisplayInfo ,
130- mean = r . Success ? ConvertNanosToMs ( r . ResultStatistics . Mean ) : 0
130+ mean = r . Success ? r . ResultStatistics . Mean : 0
131131 } )
132132 . GroupBy ( r => r . job )
133133 . Select ( job => new TraceInfo ( ) { Values = job . Select ( j => j . mean ) . ToArray ( ) , Keys = job . Select ( j => j . name ) . ToArray ( ) , TraceName = job . Key } ) ;
@@ -150,7 +150,7 @@ private IEnumerable<string> OneParameterCombined(Summary summary)
150150 param = r . BenchmarkCase . Parameters . PrintInfo ,
151151 job = r . BenchmarkCase . Job . ResolvedId ,
152152 name = r . BenchmarkCase . Descriptor . WorkloadMethodDisplayInfo ,
153- mean = r . Success ? ConvertNanosToMs ( r . ResultStatistics . Mean ) : 0
153+ mean = r . Success ? r . ResultStatistics . Mean : 0
154154 } )
155155 . GroupBy ( r => r . param )
156156 . Select ( bp => new SubPlot ( )
@@ -164,7 +164,7 @@ private IEnumerable<string> OneParameterCombined(Summary summary)
164164 Values = j . Select ( j => j . mean ) . ToArray ( ) ,
165165 Keys = j . Select ( j => j . name ) . ToArray ( ) ,
166166 } ) . ToList ( )
167- } ) ;
167+ } ) . ToList ( ) ;
168168
169169 var colors2 = ColorMap . GetColorList ( Info ) ;
170170 ColumnChartRenderer . Render ( subPlots , title , file , Info . Width , Info . Height , colors2 ) ;
@@ -174,9 +174,9 @@ private IEnumerable<string> OneParameterCombined(Summary summary)
174174
175175 // internal measurements are in nanos
176176 // https://github.com/dotnet/BenchmarkDotNet/blob/e4d37d03c0b1ef14e7bde224970bd0fc547fd95a/src/BenchmarkDotNet/Templates/BuildPlots.R#L63-L75
177- private static double ConvertNanosToMs ( double nanos )
178- {
179- return nanos * 0.000001 ;
180- }
177+ // private static double ConvertNanosToMs(double nanos)
178+ // {
179+ // return nanos * 0.000001;
180+ // }
181181 }
182182}
0 commit comments