Пример #1
0
 private static void ReportIndividualResult(IBencher bencher, BenchResult result)
 {
     Console.WriteLine(
         "[{0}] Number of elements fetched individually: {1}.\tTotal time: {2:N2}ms.\tTime per element: {3:N2}ms",
         DateTime.Now.ToString("HH:mm:ss"),
         KeysForIndividualFetches.Count,
         result.FetchTimeInMilliseconds,
         result.FetchTimeInMilliseconds / KeysForIndividualFetches.Count);
 }
Пример #2
0
 private static void ReportSetResult(BenchResult result)
 {
     Console.WriteLine(
         "[{0}] Number of elements fetched: {1}.\tFetch took: {2:N2}ms.\tEnumerating result took: {3:N2}ms",
         DateTime.Now.ToString("HH:mm:ss"),
         result.TotalNumberOfRowsFetched,
         result.FetchTimeInMilliseconds,
         result.EnumerationTimeInMilliseconds);
 }
Пример #3
0
 private static void ReportEagerLoadResult(IBencher bencher, BenchResult result)
 {
     Console.WriteLine(
         "[{0}] Number of elements fetched: {1} ({2}).\tFetch took: {3:N2}ms.",
         DateTime.Now.ToString("HH:mm:ss"),
         result.TotalNumberOfRowsFetched,
         string.Join(" + ", result.NumberOfRowsFetchedPerType.Select(kvp => kvp.Value).ToArray()),
         result.FetchTimeInMilliseconds);
 }