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 more benchmarks #154

Merged
merged 2 commits into from
Feb 26, 2021
Merged

Add more benchmarks #154

merged 2 commits into from
Feb 26, 2021

Conversation

giordano
Copy link
Member

No description provided.

@giordano giordano marked this pull request as draft February 25, 2021 13:10
@giordano giordano force-pushed the mg/more-benchmarks branch 2 times, most recently from d403b57 to c40e394 Compare February 25, 2021 15:01
@giordano giordano marked this pull request as ready for review February 25, 2021 15:51
SUITE["base"]["get_log_weights!"] = @benchmarkable ParticleDA.get_log_weights!(weights, truth_observations, model_observations, $(filter_params.weight_std)) setup=(weights = Vector{Float64}(undef, nprt_per_rank); truth_observations=ParticleDA.update_truth!(model_data, nprt_per_rank); model_observations = ParticleDA.get_particle_observations!(model_data, nprt_per_rank))
SUITE["base"]["normalized_exp!"] = @benchmarkable ParticleDA.normalized_exp!(weights) setup=(weights = rand(filter_params.nprt))
SUITE["base"]["resample!"] = @benchmarkable ParticleDA.resample!(resampling_indices, weights) setup=(resampling_indices = Vector{Int}(undef, filter_params.nprt); weights = rand(filter_params.nprt))
# SUITE["base"]["copy_states!"] = @benchmarkable ParticleDA.copy_states!($(ParticleDA.get_particles(model_data)), $(bootstrap_filter_data.copy_buffer), $(bootstrap_filter_data.resampling_indices), $(my_rank), $(nprt_per_rank))
Copy link
Member Author

Choose a reason for hiding this comment

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

This is failing inside MPI.Irecv! but I don't understand why. Not sure it's worth spending more time on this, but I left it commented in case someone wants to get back to this in the future.

Comment on lines +16 to +17
SUITE["base"] = BenchmarkGroup()
SUITE["BootstrapFilter"] = BenchmarkGroup()
Copy link
Member Author

Choose a reason for hiding this comment

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

Now we have these two benchmark groups: "base" is common to all filters (I think, let me know if I missed something!), "BootstrapFilter" runs benchmarks for init_filter and run_particle_filter which in #133 will have different implementations for the optimal filters

Copy link
Member

Choose a reason for hiding this comment

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

What about update_particle_dynamics!?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch!

@giordano giordano merged commit 38df1f4 into master Feb 26, 2021
@giordano giordano deleted the mg/more-benchmarks branch February 26, 2021 14:24
@giordano giordano linked an issue Feb 26, 2021 that may be closed by this pull request
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.

Benchmark suite
2 participants