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

Add basic support for selecting a codegen backend for compile benchmarks #1742

Merged
merged 6 commits into from
Nov 24, 2023

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Nov 9, 2023

This PR introduces a new parameter for compilation benchmarks - a codegen backend. It adds support for it to the collector and the database. It does not yet modify the web UI, and it also doesn't add other backends than the default one (LLVM).

The database changes will require the most review scrutiny. I tested the DB migration for both SQLite and Postgre locally.

Best reviewed commit by commit.

database/src/lib.rs Outdated Show resolved Hide resolved
@nnethercote nnethercote self-requested a review November 9, 2023 22:39
Copy link
Contributor

@nnethercote nnethercote left a comment

Choose a reason for hiding this comment

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

Basically seems ok, though I didn't really look at the DB changes because I don't know anything about that.

@Kobzol
Copy link
Contributor Author

Kobzol commented Nov 11, 2023

Thanks for taking a look, I have resolved the comments.

@Kobzol
Copy link
Contributor Author

Kobzol commented Nov 11, 2023

Turns our that PascalCase is still needed, otherwise serde will just use the lowercase version by default.

@Kobzol
Copy link
Contributor Author

Kobzol commented Nov 23, 2023

Rebased to fix conflict.

Since we're already modifying the pstat_series table,
this commit also renames the cache column to scenario,
and the statistic column to metric, to resolve a long-standing
mismatch in the terminology.
@Kobzol
Copy link
Contributor Author

Kobzol commented Nov 24, 2023

Here goes nothing.

@Kobzol Kobzol merged commit 3fbeb90 into rust-lang:master Nov 24, 2023
9 of 10 checks passed
@Kobzol Kobzol deleted the codegen-backend branch November 24, 2023 20:38
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.

3 participants