def print()

in benchmark/benchmark/aggregate.py [0:0]


    def print(self):
        if not os.path.exists(PathMaker.plots_path()):
            os.makedirs(PathMaker.plots_path())

        results = [
            self._print_latency(),
            self._print_tps(scalability=False),
            self._print_tps(scalability=True),
        ]
        for name, records in results:
            for setup, values in records.items():
                data = '\n'.join(
                    f' Variable value: X={x}\n{y}' for x, y in values
                )
                string = (
                    '\n'
                    '-----------------------------------------\n'
                    ' RESULTS:\n'
                    '-----------------------------------------\n'
                    f'{setup}'
                    '\n'
                    f'{data}'
                    '-----------------------------------------\n'
                )

                max_lat = setup.max_latency
                filename = PathMaker.agg_file(
                    name,
                    setup.faults,
                    setup.nodes,
                    setup.workers,
                    setup.collocate,
                    setup.rate,
                    setup.tx_size,
                    max_latency=None if max_lat == 'any' else max_lat,
                )
                with open(filename, 'w') as f:
                    f.write(string)