public static ChartData BuildChartDataForArrayCreation( IBenchmark benchmark, int repetitionsCount) { var chart = new ChartDataCreation(benchmark, repetitionsCount, x => new StructArrayCreationTask(x), x => new ClassArrayCreationTask(x)); return(new ChartData { Title = "Create array", ClassPoints = chart.ClassesTimes, StructPoints = chart.StructuresTimes, }); }
public static ChartData BuildChartDataForMethodCall( IBenchmark benchmark, int repetitionsCount) { var chart = new ChartDataCreation(benchmark, repetitionsCount, x => new MethodCallWithStructArgumentTask(x), x => new MethodCallWithClassArgumentTask(x)); return(new ChartData { Title = "Call method with argument", ClassPoints = chart.ClassesTimes, StructPoints = chart.StructuresTimes, }); }