WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit bce1d91d authored by Zixian Cai's avatar Zixian Cai
Browse files

Support generating graph

parent 6bc376aa
......@@ -33,6 +33,7 @@ def local(file, comp_remote):
logger.info("Generating report, compare remote?: {}".format(comp_remote))
report = revision.generate_report()
report_pipelines = {
"mubench.models.pipeline.LogOutputPipeline": 42
"mubench.models.pipeline.LogOutputPipeline": 42,
"mubench.models.pipeline.MatplotlibPipeline": 100
go_through_pipelines(report, report_pipelines)
......@@ -38,3 +38,34 @@ class LogOutputPipeline(Pipeline):
"Measurement including startup time:",
return report
class MatplotlibPipeline(Pipeline):
def process(self, report):
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
for idx, ts in enumerate(report.tasksets):
items = sorted(ts.results.items(), key=lambda x: x[1].callback.mean)
n = len(items)
callback_means = [x[1].callback.mean for x in items]
t_proc_means = [x[1].t_proc.mean for x in items]
labels = [x[0] for x in items]
ind = np.arange(n) # the x locations for the groups
width = 0.35 # the width of the bars
fig, ax = plt.subplots()
rects1 = ax.bar(ind, callback_means, width, color='r')
rects2 = ax.bar(ind + width, t_proc_means, width, color='y')
ax.set_xticks(ind + width / 2)
ax.legend((rects1[0], rects2[0]), ('Callback', 'T_proc'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment