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 a benchmark for read_schema #472

Merged
merged 6 commits into from
Nov 20, 2024
Merged

Add a benchmark for read_schema #472

merged 6 commits into from
Nov 20, 2024

Conversation

ryanslade
Copy link
Collaborator

@ryanslade ryanslade commented Nov 20, 2024

Add a benchmark for the read_schema function which has caused regressions in the past.

Part of #408

@ryanslade ryanslade marked this pull request as ready for review November 20, 2024 10:44
require.NoError(b, mig.Close())
})

setupInitialTable(b, ctx, testSchema, mig, db, 1)
Copy link
Member

Choose a reason for hiding this comment

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

it seems clear that for the shake of this test and the others, we probably want a more complex schema here, right? not for this PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, agree. I'm not sure exactly how the performance of read_schema would change depending on the complexity of the schema but I guess that's something we could actually benchmark too :)

Copy link
Member

Choose a reason for hiding this comment

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

++

@ryanslade ryanslade merged commit 481f1c6 into main Nov 20, 2024
27 checks passed
@ryanslade ryanslade deleted the rs/readschema-benchmarks branch November 20, 2024 11:20
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