Exemplo n.º 1
0
        public void RunRandomGraphsStats()
        {
            // var folder = @"1588669377_NumberOfEdges_edges_0_3";
            // var folder = @"1588712706_NumberOfEdges_1_edges_0_3";
            // var folder = @"1588712706_NumberOfEdges_3_edges_0_3";
            // var folder = @"1588848834_NumberOfEdges_1_edges_0_3";
            // var folder = @"1588927280_NumberOfEdges_1_edges_0_3";
            var folder = @"1594648977_manual";
            // var folder = @"1588875883_NumberOfEdges_3_edges_0_3";
            var results = new List <List <BenchmarkScenarioResult> >();

            for (int i = 0; i <= 5; i++)
            {
                var edges        = $"e_{i}_{i}";
                var resultsEdges = new List <BenchmarkScenarioResult>();
                results.Add(resultsEdges);

                for (int j = 1; j <= 4; j++)
                {
                    var vertices   = $"v_{10 * j}_{10 * j + 9}";
                    var resultName = $"{edges}_{vertices}";
                    var result     = LoadResult(folder, resultName);
                    resultsEdges.Add(result);
                }
            }

            RandomGraphStatistics.PrintAverageTime(results, false, true, true);
            RandomGraphStatistics.PrintSuccessRate(results, true);
        }
Exemplo n.º 2
0
        protected override void Run()
        {
            var results = new List <List <BenchmarkScenarioResult> >();

            for (int i = 0; i <= 5; i++)
            {
                var edges        = $"e_{i}_{i}";
                var resultsEdges = new List <BenchmarkScenarioResult>();
                results.Add(resultsEdges);

                for (int j = 1; j <= 4; j++)
                {
                    var vertices = $"v_{10 * j}_{10 * j + 9}";
                    var graphSet = $"{edges}_{vertices}";

                    var result = Run(graphSet);
                    resultsEdges.Add(result);

                    RandomGraphStatistics.PrintAverageTime(results, false, false, true);
                    RandomGraphStatistics.PrintSuccessRate(results, false);
                }
            }
        }