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

chore: Add criterion benchmarks for casting between integer types #401

Merged
merged 2 commits into from
May 9, 2024

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

N/A

Rationale for this change

We need benchmarks so that we can evaluate performance impacts of PRs that refactor existing code.

What changes are included in this PR?

New benchmark and some refactoring for code readability

How are these changes tested?

});
}

fn create_int32_batch() -> RecordBatch {
Copy link
Contributor

Choose a reason for hiding this comment

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

just wondering should we have same for all ints/uint types?

Copy link
Member Author

Choose a reason for hiding this comment

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

They should all be pretty similar, but we can modify the test as needed depending on what we need to benchmark at the time.

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @andygrove

@andygrove andygrove merged commit bc6b2cd into apache:main May 9, 2024
40 checks passed
@andygrove andygrove deleted the cast-bench branch May 9, 2024 18:04
himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
…ache#401)

* Add cargo bench for casting between int types

* Update core/benches/cast_from_string.rs

Co-authored-by: comphead <[email protected]>

---------

Co-authored-by: comphead <[email protected]>
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