Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build static HTML page using the latest benchmark results #467

Merged
merged 45 commits into from
Nov 20, 2024
Merged

Conversation

ryanslade
Copy link
Collaborator

@ryanslade ryanslade commented Nov 18, 2024

This uses a GitHub action to download benchmark data from S3. It then uses a static generator to create charts per benchmark / Postgres version. These results are then bundled up using Jekyll which publishes the README, available at:

https://xataio.github.io/pgroll/

The benchmarks themselves can be see at https://xataio.github.io/pgroll/benchmarks.html (and are also linked from the README)

In order to make this work and also not require users of pgroll as a library to import the charting library we needed to create a new module in /dev. We needed to duplicate the definition of the benchmark results structs since we couldn't import them from the main pgroll module without actually publishing a new version of the module. Once this module has been published it will be possible.

Part of #408

README.md Show resolved Hide resolved
benchmark-results/testdata/benchmark-results.json Outdated Show resolved Hide resolved
benchmark-results/build.go Outdated Show resolved Hide resolved
@ryanslade ryanslade marked this pull request as ready for review November 19, 2024 16:19
@ryanslade
Copy link
Collaborator Author

@andrew-farries PTAL, I think this is ready to go now.

@ryanslade ryanslade merged commit 860f5a9 into main Nov 20, 2024
27 checks passed
@ryanslade ryanslade deleted the gh-pages branch November 20, 2024 08:22
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.

2 participants