Skip to content

Commit

Permalink
quick push
Browse files Browse the repository at this point in the history
  • Loading branch information
bnkc committed Aug 8, 2024
1 parent 03ee2b5 commit cff0300
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion perf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions scripts/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ def _plot_results(results: Dict[str, float], num_emails: int) -> None:
y=labels,
orientation="h",
marker=dict(
color="rgba(58, 71, 80, 0.6)",
line=dict(color="rgba(58, 71, 80, 1.0)", width=1.5),
color="rgba(0, 51, 102, 0.8)", # Darker blue color
line=dict(color="rgba(0, 51, 102, 1.0)", width=1.5),
),
)
)

fig.update_layout(
title=dict(
text=f"Benchmarking {num_emails} Emails of Various Complexities",
font=dict(size=20, color="rgba(58, 71, 80, 1.0)"),
font=dict(size=20),
x=0.5,
xanchor="center",
),
Expand All @@ -142,7 +142,7 @@ def _plot_results(results: Dict[str, float], num_emails: int) -> None:
tickvals=list(range(0, int(max(durations)) + 1, 2)),
ticktext=[f"{tick}s" for tick in range(0, int(max(durations)) + 1, 2)],
tickfont=dict(size=12, color="rgba(58, 71, 80, 1.0)"),
gridcolor="rgba(200, 200, 200, 0.5)",
gridcolor="rgba(200, 200, 200, 0.3)",
zeroline=False,
),
yaxis=dict(
Expand All @@ -167,7 +167,6 @@ def _plot_results(results: Dict[str, float], num_emails: int) -> None:
font=dict(
color="rgba(58, 71, 80, 1.0)",
size=12,
weight="bold" if index == len(durations) - 1 else "normal",
),
xanchor="left",
yanchor="middle",
Expand Down

0 comments on commit cff0300

Please sign in to comment.