from src.dockerstats import *
ds = DockerStats("tests/resources/data.csv")
print("The duration time is of \t" + str(ds.duration_min()) + " min")
print("The average cpu is of \t\t" + str(ds.cpu_avg()) + " %")
print("The average memrory usage is of " + str(ds.memory_avg()) + " %")
ds.mean_for_apps()
ds.plot_category('MEM Usage')
To plot all the interesting graphs (CPU, Memory, Net IO and Block IO)
ds.plot_category_all()
If you run jmeter, you can use the .jtl
or any .csv
report you would like.
Note: You can use default jmeter -g output.csv -o report
to generate a report.
from src.jmeter import *
jm = Jmeter("tests/resources/output.jtl")
print("The duration time is of \t\t\t" + str(jm.duration_min()) + " min")
print("The average transaction per second is of \t" + str(jm.tps_avg()) + " tps")
print("The average latency is of \t\t\t" + str(jm.latency_avg()) + " ms")
print("The average response time is of \t\t" + str(jm.response_time_avg()) + " ms")
Plot all the interesting graph
jm.plot_latency()
jm.plot_tps()
jm.plot_both()
Plot depending on the different responseMessage.
jm.plot_success()
jm.plot_label()