Skip to content

Commit

Permalink
Add CellListMap.jl NHS to benchmark code
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Dec 4, 2024
1 parent 7779a7e commit 4e4ec1d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions benchmarks/plot.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Plots
using BenchmarkTools
import CellListMap

# Generate a rectangular point cloud
include("../test/point_cloud.jl")
Expand Down Expand Up @@ -40,7 +41,8 @@ function plot_benchmarks(benchmark, n_points_per_dimension, iterations;
seed = 1, perturbation_factor_position = 1.0)
neighborhood_searches_names = ["TrivialNeighborhoodSearch";;
"GridNeighborhoodSearch";;
"PrecomputedNeighborhoodSearch"]
"PrecomputedNeighborhoodSearch";;
"CellListMapNeighborhoodSearch"]

# Multiply number of points in each iteration (roughly) by this factor
scaling_factor = 4
Expand All @@ -62,7 +64,8 @@ function plot_benchmarks(benchmark, n_points_per_dimension, iterations;
neighborhood_searches = [
TrivialNeighborhoodSearch{NDIMS}(; search_radius, eachpoint = 1:n_particles),
GridNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles),
PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles)
PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles),
CellListMapNeighborhoodSearch(NDIMS; search_radius)
]

for i in eachindex(neighborhood_searches)
Expand Down

0 comments on commit 4e4ec1d

Please sign in to comment.