Skip to content

Add historical graph generation workflow#3610

Open
perpil wants to merge 2 commits into
maxday:mainfrom
perpil:main
Open

Add historical graph generation workflow#3610
perpil wants to merge 2 commits into
maxday:mainfrom
perpil:main

Conversation

@perpil
Copy link
Copy Markdown

@perpil perpil commented May 29, 2026

Pull Request Checklist

For New Runtime Additions

  • Added the new runtime to the manifest.json file
  • Updated README.md to reflect the new runtime
  • Gave execution permission to build.sh
  • If needed, updated .github/dependabot.yml
  • If needed, updated .gitignore

Description

Add graphs to show historical trends over time to the website. This is useful in visualizing improvements and regressions in runtimes.

  • Add a GitHub Actions workflow to generate and commit SVG performance graphs when data changes.
  • Introduce graph-generator/app.py to parse data JSONs, produce 2y and 180d SVG charts and commit them to /graphs.
  • Inject a small clickable graph thumbnail into index.html, add CSS for graph container and thumbnail styling, and update script.js to set thumbnail and large-graph URLs (handles GitHub Pages vs local).
  • Uses pandas/matplotlib to generate graphs
  • Gemini CLI w/model 3.0 Flash was used to create this commit

Fixes #3609

Appearance

Image

If you click into one of the graphs it looks like this:

Image

Author Concerns

  1. I have only run this locally, I'm not familiar enough with github workflows to test that the script runs in the github environment.
  2. The files it generates go into the graphs folder and are committed to the repro. Since they are SVGs, they should be relatively small diffs, but there are 1400 of them per day that overwrite the same file.
  3. This will load 35 svg files from the github raw endpoint on page load. It is similar to how data.json is loaded, but this might not scale as well as having the files not checked into the repo and pushed to the CDN with the index.html.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

perpil added 2 commits May 29, 2026 10:47
+ Add a GitHub Actions workflow to generate and commit SVG performance graphs when data changes.
+ Introduce graph-generator/app.py to parse data JSONs, produce 2y and 180d SVG charts and commit them to /graphs.
+ Inject a small clickable graph thumbnail into index.html, add CSS for graph container and thumbnail styling, and update script.js to set thumbnail and large-graph URLs (handles GitHub Pages vs local).
+ Uses pandas/matplotlib to generate graphs
+ Gemini CLI w/model 3.0 Flash was used to create this commit
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.

Adding graphs to show latency and memory over time to website

1 participant