timing
This commit is contained in:
parent
67b88aa2a1
commit
408cff442c
@ -53,10 +53,13 @@ def index():
|
||||
|
||||
start_time = time.time()
|
||||
df = pd.read_sql("SELECT month, cast(year AS varchar), current_energy AS value FROM pv_energy_by_month", con=engine)
|
||||
duration = time.time() - start_time
|
||||
step1_time = time.time()
|
||||
duration1 = step1_time - start_time
|
||||
fig_1 = px.bar(df, x='month', y='value', color='year', barmode='group')
|
||||
step2_time = time.time()
|
||||
duration2 = step2_time - start_time
|
||||
fig_1.update_layout(
|
||||
title=f"Jahreswerte Exportierte Energie {duration}",
|
||||
title=f"Jahreswerte Exportierte Energie {duration1:.3f}, {duration2:.3f}",
|
||||
xaxis_title="",
|
||||
yaxis_title="",
|
||||
legend_title="Jahr",
|
||||
|
Loading…
x
Reference in New Issue
Block a user