-
Notifications
You must be signed in to change notification settings - Fork 267
perf: Improve criterion benchmarks for cast string to int #3049
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
Conversation
|
|
@coderfender could you review? |
|
New output after re-adding |
| // Create UTF8 batch with strings representing ints, floats, nulls | ||
| fn create_utf8_batch() -> RecordBatch { | ||
| /// Create batch with small integer strings that fit in i8 range (for i8/i16 benchmarks) | ||
| fn create_small_int_string_batch() -> RecordBatch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor : is it worth creating i16 batch as well ?
coderfender
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @andygrove
comphead
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @andygrove it is lgtm
Which issue does this PR close?
N/A
Rationale for this change
The current benchmarks only covered legacy eval mode and not ansi or try.
I am adding these benchmarks so that I can verify the optimizations in #3048
What changes are included in this PR?
Cover all eval modes.
How are these changes tested?