Skip to content

Webpage to display a set of benchmarks from RustPython #43

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

Merged
merged 13 commits into from
Apr 6, 2021

Conversation

theangryhobbit
Copy link
Contributor

This PR addresses #42 and thereby also the final part of this issue (2396) from the RustPython repo.

If this PR from the RustPython repo is merged, this PR can display the benchmarks that are being saved to this repo.

Here is an example of how the webpage would look like (given that a set of benchmarks have been committed to this repo)
image

And here an example of the webpage given that the set of benchmarks are not available
image

The code basically checks if the /assets/criterion/ folder exists and this folder should contain sub-folders with each set of benchmarks. The tabs are programmatically generated from the sub-folder names and the set of benchmarks in these sub-folders form the content of each tab.

_config.yml Outdated
@@ -36,6 +36,8 @@ navigation:
url: /blog
- title: Docs
url: /docs
- title: Benchmarks
url: /benchmarks
Copy link
Member

Choose a reason for hiding this comment

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

I think we should hold off on adding this to the main menu.

The main menu should have something like "dashboards", then under it a drop-down where we can list benchmarks, cpython compatibility, what is left (and maybe others).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with this, I will edit it. But before I do, I have a question about this:
To what should the "CPython compatibility" and "What's left" options link to?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mireille-raad I have moved the link to the benchmarks page to the dashboard for now and removed it from the navbar. Let me know if this is good enough or whether you still want to have a dropdown menu added to the navbar for the dasboard.

@theangryhobbit
Copy link
Contributor Author

This PR from the RustPython repo has just been merged! This means that the benchmarks webpage would now be able to display the benchmarks that are being saved to this repo.

@mireille-raad
Copy link
Member

I think this code looks great and is ready to be merged as well. Thank you so much!

I saw that the Pull Request that generates the benchmarks just got merged. The GitHub action needs time to run since it is a cron job. Let's wait for the first batch of benchmarks to be udpated here and then we merge this (otherwise there will be the error message)

@coolreader18
Copy link
Member

Yup, I think it should run this evening, 0000 UTC Saturday

@mireille-raad
Copy link
Member

I saw that @coolreader18 and @nielsbauman added the data manually. Should we merge this for now?

@theangryhobbit
Copy link
Contributor Author

I saw that @coolreader18 and @nielsbauman added the data manually. Should we merge this for now?

I think we can merge this now 👍

@coolreader18 coolreader18 merged commit 33500a9 into RustPython:master Apr 6, 2021
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.

4 participants