Exemplo n.º 1
0
        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,
            });
        }
Exemplo n.º 2
0
        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,
            });
        }