Skip to content

Commit 2d02756

Browse files
committed
Benchmark information updated.
1 parent 0fb8f73 commit 2d02756

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ See the table below to get an impression of the performance provided by the [KdT
88

99
| | Build C++ | Build Python | Knn C++ | Knn Python |
1010
| ----------------------------------- | --------- | ------------- | ---------- | ----------- |
11-
| [nanoflann][nano] v1.3.2 | 1.5s | ... | 3.2s | ... |
12-
| [SciPy KDTree][spkd] v1.6.3 | ... | 5.0s | ... | 547.2s |
13-
| [Scikit-learn KDTree][skkd] 0.22.2 | ... | 12.2s | ... | 44.5s |
14-
| [pykdtree][pykd] 1.3.6 | ... | 1.0s | ... | 6.6s |
11+
| [nanoflann][nano] v1.5.0 | 2.9s | ... | 3.2s | ... |
12+
| [SciPy KDTree][spkd] 1.11.0 | ... | 4.5s | ... | 563.6s |
13+
| [Scikit-learn KDTree][skkd] 1.2.2 | ... | 6.2s | ... | 42.2s |
14+
| [pykdtree][pykd] 1.3.7 | ... | 1.0s | ... | 6.6s |
1515
| [OpenCV FLANN][cvfn] 4.6.0 | 1.9s | ... | 4.7s | ... |
1616
| PicoTree KdTree v0.8.0 | 0.9s | 1.0s | 2.8s | 3.1s |
1717

docs/benchmark.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
One of the PicoTree examples contains [benchmarks](../examples/benchmark/) of different KdTree implementations. This page compares the one of PicoTree with respect to [nanoflann](https://github.com/jlblancoc/nanoflann) and describes how to reproduce the input that was used for benchmarking.
44

5-
Results were generated on: 29-08-2021 using MinGW GCC 10.3 using PicoTree 0.7.4.
5+
The results described in this document were generated on 29-08-2021 using MinGW GCC 10.3, PicoTree v0.7.4 and Nanoflann v1.3.2.
6+
7+
Note: The performance of PicoTree v0.8.0 released on 30-6-2023 is identical to that of v0.7.4. However, the build algorithm of nanoflann v1.5.0 regressed and has become 90% slower.
68

79
# Data sets
810

examples/benchmark/bm_nanoflann.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ BENCHMARK_DEFINE_F(BmNanoflann, RadiusCt)(benchmark::State& state) {
130130
tree.buildIndex();
131131

132132
for (auto _ : state) {
133-
std::vector<std::pair<Index, Scalar>> results;
133+
std::vector<nanoflann::ResultItem<Index, Scalar>> results;
134134
std::size_t sum = 0;
135135
for (auto const& p : points_test_) {
136136
benchmark::DoNotOptimize(
137137
sum += tree.radiusSearch(
138138
p.data(),
139139
squared,
140140
results,
141-
nanoflann::SearchParams{0, 0, false}));
141+
nanoflann::SearchParameters{0, false}));
142142
}
143143
}
144144
}

0 commit comments

Comments
 (0)