Beuth-Erdelt / Benchmark-Experiment-Host-Manager

This python tool helps managing DBMS benchmarking experiments in a Kubernetes-based HPC cluster environment. It enables users to configure hardware / software setups for easily repeating tests over varying configurations.
GNU Affero General Public License v3.0
6 stars 0 forks source link

Show more infos in CLIs #256

Closed perdelt closed 9 months ago

perdelt commented 9 months ago
perdelt commented 9 months ago

Content of result folder:

from dbmsbenchmarker import *

# path of folder containing experiment results
resultfolder = "/results/"

# create evaluation object for result folder
evaluate = inspector.inspector(resultfolder)

# dataframe of experiments
df = evaluate.get_experiments_preview().sort_values('time')
df['info'] = df['info'].str.replace('. ', '.\n')

#import pandas as pd
from prettytable import PrettyTable

# Create a PrettyTable object
pt = PrettyTable()
pt.field_names = df.columns
pt.align['info'] = 'r'  # 'r' for right alignment

# Add rows to the PrettyTable
for _, row in df.iterrows():
    pt.add_row(row)

# Display the PrettyTable
print(pt)
perdelt commented 9 months ago

included in #260