Skip to content

Add benchmark summary chart - #16

Merged
alvinwan merged 1 commit into
mainfrom
dev/alvin/benchmark-summary-chart
Apr 7, 2026
Merged

Add benchmark summary chart#16
alvinwan merged 1 commit into
mainfrom
dev/alvin/benchmark-summary-chart

Conversation

@alvinwan

@alvinwan alvinwan commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • add an SVG benchmark summary chart in the existing TexSoup/timefhuman house style
  • keep the chart focused on the two-panel compression and speed snapshot
  • include the chart generator script alongside the generated SVG so the asset can be regenerated

Validation

  • python3 benchmarks/plot_summary_svg.py

@alvinwan
alvinwan marked this pull request as ready for review April 7, 2026 09:02
@alvinwan
alvinwan merged commit d7032e2 into main Apr 7, 2026
10 checks passed
@alvinwan
alvinwan deleted the dev/alvin/benchmark-summary-chart branch April 7, 2026 09:02

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

Copy link
Copy Markdown

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: e2f6801890

ℹ️ 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 on lines +67 to +68
f'<rect x="{x}" y="{y}" width="{width}" height="{height}" rx="{rx}" '
f'fill="{fill}" stroke="{stroke}"{dash_attr}{opacity_attr} />'

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 Serialize SVG numbers with fixed precision

svg_rect writes raw Python float representations directly into SVG attributes, which makes regeneration non-deterministic across Python versions/environments (in this repo, python3 benchmarks/plot_summary_svg.py on Python 3.10 rewrites multiple committed lines by tiny rounding deltas even when benchmark data is unchanged). That breaks the documented regen workflow by producing spurious diffs and unnecessary churn; formatting numeric fields to a fixed precision before serialization avoids this.

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