Пример #1
0
    def _write_stat_pulp_concurrent(self, total_max_timing):
        """Compute statistics on concurrent sync data across tests"""

        with open(self.stat_file_name, 'a') as handler:
            writer = csv.writer(handler)
            writer.writerow(['concurrent-sync-stat'])
            writer.writerow(['test-case', 'min', 'median', 'max', 'std'])

        stat_dict = {}
        for test in range(2, len(total_max_timing) + 2):
            time_list = total_max_timing.get(test)
            stat_tuple = generate_stat_for_pulp_sync(
                test,
                time_list,
                self.stat_file_name,
            )
            # insert each returned tuple of statistics into stat_dict
            stat_dict.update({test: stat_tuple})

        generate_line_chart_stat_pulp(
            stat_dict,
            'Satellite 6 Pulp Concurrent Sync Test',
            'perf-statistics-concurrent-sync.svg',
            self.max_num_tests
        )
Пример #2
0
    def _write_stat_pulp_linear(self, time_result_dict):
        """Compute statistics on sequential sync data"""
        with open(self.stat_file_name, 'a') as handler:
            writer = csv.writer(handler)
            writer.writerow(['sequential-sync-stat'])
            writer.writerow(['iteration', 'min', 'median', 'max', 'std'])

        stat_dict = {}
        for i in range(len(time_result_dict)):
            time_list = time_result_dict.get('thread-{0}'.format(i))
            stat_tuple = generate_stat_for_pulp_sync(i, time_list,
                                                     self.stat_file_name)
            stat_dict.update({i: stat_tuple})

        generate_line_chart_stat_pulp(stat_dict,
                                      'Satellite 6 Pulp Sequential Sync Test',
                                      'perf-statistics-sequential-sync.svg',
                                      len(self.repo_names_list))
Пример #3
0
    def _write_stat_pulp_linear(self, time_result_dict):
        """Compute statistics on sequential sync data"""
        with open(self.stat_file_name, "a") as handler:
            writer = csv.writer(handler)
            writer.writerow(["sequential-sync-stat"])
            writer.writerow(["iteration", "min", "median", "max", "std"])

        stat_dict = {}
        for i in range(len(time_result_dict)):
            time_list = time_result_dict.get("thread-{0}".format(i))
            stat_tuple = generate_stat_for_pulp_sync(i, time_list, self.stat_file_name)
            stat_dict.update({i: stat_tuple})

        generate_line_chart_stat_pulp(
            stat_dict,
            "Satellite 6 Pulp Sequential Sync Test",
            "perf-statistics-sequential-sync.svg",
            len(self.repo_names_list),
        )
Пример #4
0
    def _write_stat_pulp_concurrent(self, total_max_timing):
        """Compute statistics on concurrent sync data across tests"""

        with open(self.stat_file_name, "a") as handler:
            writer = csv.writer(handler)
            writer.writerow(["concurrent-sync-stat"])
            writer.writerow(["test-case", "min", "median", "max", "std"])

        stat_dict = {}
        for test in range(2, len(total_max_timing) + 2):
            time_list = total_max_timing.get(test)
            stat_tuple = generate_stat_for_pulp_sync(test, time_list, self.stat_file_name)
            # insert each returned tuple of statistics into stat_dict
            stat_dict.update({test: stat_tuple})

        generate_line_chart_stat_pulp(
            stat_dict,
            "Satellite 6 Pulp Concurrent Sync Test",
            "perf-statistics-concurrent-sync.svg",
            self.max_num_tests,
        )
Пример #5
0
def _write_stat_csv_chart_pulp(total_max_timing):
    """Compute statistics on sync data across tests"""
    with open(stat_file_name, 'w') as handler:
        writer = csv.writer(handler)
        writer.writerow(['concurrent-sync-stat'])
        writer.writerow(['test-case', 'min', 'median', 'max', 'std'])
    stat_dict = {}
    for test in range(2, len(total_max_timing) + 2):
        time_list = total_max_timing.get(test)
        stat_tuple = generate_stat_for_pulp_sync(
            test,
            total_max_timing.get(test),
            stat_file_name,
        )
        # insert each returned tuple of statistics into stat_dict
        stat_dict.update({test: stat_tuple})
    print stat_dict
    generate_pulp_line_chart(
        stat_dict,
        'Satellite 6 Concurrent Syncs',
        raw_file_name,
    )
Пример #6
0
    def _write_stat_pulp_linear(self, time_result_dict):
        """Compute statistics on sequential sync data"""
        with open(self.stat_file_name, 'a') as handler:
            writer = csv.writer(handler)
            writer.writerow(['sequential-sync-stat'])
            writer.writerow(['iteration', 'min', 'median', 'max', 'std'])

        stat_dict = {}
        for i in range(len(time_result_dict)):
            time_list = time_result_dict.get('thread-{0}'.format(i))
            stat_tuple = generate_stat_for_pulp_sync(
                i,
                time_list,
                self.stat_file_name
            )
            stat_dict.update({i: stat_tuple})

        generate_line_chart_stat_pulp(
            stat_dict,
            'Satellite 6 Pulp Sequential Sync Test',
            'perf-statistics-sequential-sync.svg',
            len(self.repo_names_list)
        )
Пример #7
0
    def _write_stat_pulp_concurrent(self, total_max_timing):
        """Compute statistics on concurrent sync data across tests"""

        with open(self.stat_file_name, 'a') as handler:
            writer = csv.writer(handler)
            writer.writerow(['concurrent-sync-stat'])
            writer.writerow(['test-case', 'min', 'median', 'max', 'std'])

        stat_dict = {}
        for test in range(2, len(total_max_timing) + 2):
            time_list = total_max_timing.get(test)
            stat_tuple = generate_stat_for_pulp_sync(
                test,
                time_list,
                self.stat_file_name,
            )
            # insert each returned tuple of statistics into stat_dict
            stat_dict.update({test: stat_tuple})

        generate_line_chart_stat_pulp(stat_dict,
                                      'Satellite 6 Pulp Concurrent Sync Test',
                                      'perf-statistics-concurrent-sync.svg',
                                      self.max_num_tests)