def validate_pgbench_perf(self, pgbench_pods): """ Processing the pod output and prints latency,tps in table format for all the pods """ pgbench_pods_output = Postgresql.validate_pgbench_run(self, pgbench_pods, print_table=True) tps_latency_table = PrettyTable() tps_latency_table.field_names = [ "pod_name", "latency_avg", "lat_stddev", "tps_incl", "tps_excl", ] # Taking transaction per second and latency information for pgbench_pod_out in pgbench_pods_output: for pod_output in pgbench_pod_out[0]: for pod in pod_output.values(): tps_latency_table.add_row([ pgbench_pod_out[1], pod["latency_avg"], pod["lat_stddev"], pod["tps_incl"], pod["tps_excl"], ]) log.info("*********Latency and TPS*********") log.info(f"\n{tps_latency_table}\n")
def _validate_pgbench_run(self, pgbench_pods, print_table=True): Postgresql.validate_pgbench_run(self, pgbench_pods, print_table=True)