コード例 #1
0
ファイル: test_pulp_sync.py プロジェクト: anarang/robottelo
    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
ファイル: test_pulp_sync.py プロジェクト: elyezer/robottelo
    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
ファイル: test_pulp_sync.py プロジェクト: anarang/robottelo
    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)
        )
コード例 #6
0
ファイル: test_pulp_sync.py プロジェクト: elyezer/robottelo
    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)