-
Notifications
You must be signed in to change notification settings - Fork 169
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
perf: Add criterion benchmark for aggregate expressions #948
Conversation
native/core/Cargo.toml
Outdated
|
||
[[bench]] | ||
name = "aggregate" | ||
harness = false |
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.
nit: shall we add an empty line to the end of the file?
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.
LGTM
}); | ||
|
||
group.bench_function("sum_decimal_comet", |b| { | ||
let comet_sum_decimal = Arc::new(AggregateUDF::new_from_impl(SumDecimal::new( |
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.
do we need to use blackbox
to avoid the optimization?
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.
added, thanks
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #948 +/- ##
============================================
- Coverage 34.15% 34.02% -0.13%
+ Complexity 881 876 -5
============================================
Files 112 112
Lines 43276 43276
Branches 9572 9572
============================================
- Hits 14779 14725 -54
- Misses 25478 25518 +40
- Partials 3019 3033 +14 ☔ View full report in Codecov by Sentry. |
Which issue does this PR close?
N/A
Rationale for this change
Add Criterion benchmark to compare DataFusion and Comet aggregate expressions.
What changes are included in this PR?
New benchmark
How are these changes tested?
Manually