Skip to content

Match benchmark chart to TexSoup styling#17

Merged
alvinwan merged 4 commits intomainfrom
dev/alvin/benchmark-plot-dark-mode
Apr 7, 2026
Merged

Match benchmark chart to TexSoup styling#17
alvinwan merged 4 commits intomainfrom
dev/alvin/benchmark-plot-dark-mode

Conversation

@alvinwan
Copy link
Copy Markdown
Owner

@alvinwan alvinwan commented Apr 7, 2026

Summary

Match the benchmark summary assets to the established TexSoup benchmark styling and naming.

What Changed

  • rename the generator to benchmarks/plot.py
  • rename the checked-in image to benchmarks/summary.svg
  • update benchmarks/README.md to embed summary.svg
  • switch the chart theme colors to the same light/dark CSS variables used by ~/dev/TexSoup/benchmarks/plot.py
  • use the same fixed background treatment as the TexSoup benchmark assets

Why

The prior follow-up used a custom dark-mode treatment and different asset names. This change brings the plot in line with the benchmark styling conventions already used in TexSoup.

Impact

  • the benchmark chart now matches the established benchmark visual language more closely
  • the asset naming matches the TexSoup benchmark layout
  • no runtime package behavior changes

Validation

  • ran python3 benchmarks/plot.py
  • ran xmllint --noout benchmarks/summary.svg
  • ran git diff --check

@alvinwan alvinwan changed the title [codex] Refresh benchmark chart dark mode Match benchmark chart to TexSoup styling Apr 7, 2026
@alvinwan alvinwan marked this pull request as ready for review April 7, 2026 09:44
@alvinwan alvinwan merged commit f1c39b9 into main Apr 7, 2026
10 checks passed
@alvinwan alvinwan deleted the dev/alvin/benchmark-plot-dark-mode branch April 7, 2026 09:44
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08a9078958

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread benchmarks/plot.py
parser.add_argument(
'--output',
type=Path,
default=Path('benchmarks/summary.svg'),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve default output relative to script

The default --output path is now Path('benchmarks/summary.svg'), which is interpreted relative to the current working directory instead of the script location. If someone runs the generator from inside benchmarks/ (for example, python3 plot.py while editing it), it now targets benchmarks/benchmarks/summary.svg and fails with FileNotFoundError, so chart regeneration becomes CWD-dependent; the previous behavior (Path(__file__).with_name(...)) did not have this regression.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant