MCPcopy Create free account
hub / github.com/eth-easl/dirigent / get_per_function

Function get_per_function

artifact_evaluation/plot_azure_500.py:127–137  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

125 return cdf(df, 'responseTime')
126
127 def get_per_function(path):
128 df = pd.read_csv(path)
129
130 df['responseTime'] -= df['actualDuration']
131 df['responseTime'] /= 1000 # to ms
132
133 df = df.apply(lambda x: x.replace({'(\-[0-9]+(\-[0-9]+\-deployment\-[0-9A-Za-z\-]+){0,1})$': ""}, regex=True))
134
135 test = df.groupby('instance')['responseTime'].mean().to_frame()
136
137 return cdf(test, 'responseTime')
138
139 fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(8, 4))
140

Callers 1

Calls 1

cdfFunction · 0.85

Tested by

no test coverage detected