-
Notifications
You must be signed in to change notification settings - Fork 43
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 benchmarks for map and broadcast with Union{T, Missing} arrays #176
Conversation
These will either need to be behind a version guard or we'll need to introduce a dependency on Missings for 0.6 support. |
Ah, indeed. I've reverted the move to |
Add benchmarks comparing a simple loop with map() and broadcast().
g["perf_sum", string(typeof(A))] = @benchmarkable perf_sum($A) | ||
g["perf_countnothing", string(typeof(A))] = @benchmarkable perf_countnothing($A) | ||
for (M, A) in ((false, X), (true, X2)) | ||
g["perf_sum", T, M] = @benchmarkable perf_sum($A) |
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.
I wasn't sure how the benchmarks names work: is it OK to use three dimensions and to use values directly rather than strings?
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.
I don't really know. @jrevels?
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.
Yes, you can use arbitrary tuples of values for benchmark keys
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.
the main guideline is to keep them relatively short - long keys are formatted annoyingly in benchmark reports
Good to go? |
Add benchmarks comparing a simple loop with
map
andbroadcast
. Usemissing
instead ofnothing
since it propagates with standard operations, which allows testing more cases.These are the benchmarks associated with JuliaLang/julia#25828.