Benchmarks of ordito.neighbors against every library that computes the same thing. Each chart shows the time of every library relative to ordito on CUDA (1x, in green): a longer bar took longer. The table under each chart lists every input the function was measured on. See Benchmarks for how to read and reproduce these numbers.
Time relative to ordito (CUDA), geometric mean over the neighbors functions both implement; in parentheses, the number of functions. Log scale. Runs stopped at the time limit are left out.Values
Library
Time relative to ordito
Functions compared
ordito faster in
MeshLib
8.3x
4
4
Open3D
30x
9
9
PyTorch3D (CUDA)
56x
6
6
SciPy
85x
13
13
libigl
188x
7
7
query_nearest_bvh_k1
dragon (871 414 faces) · time relative to ordito, log scale · a red cross is a run that left no timeValues
Library
Median
Relative to ordito
ordito (CUDA)
628.0 µs
1x
MeshLib
14.00 ms
22x
PyTorch3D (CUDA)
33.72 ms
54x
Open3D
113.52 ms
181x
SciPy
133.10 ms
212x
libigl
out of memory (predicted)
All inputs
Input
ordito (CUDA)
libigl
MeshLib
Open3D
PyTorch3D (CUDA)
SciPy
sphere_small
203.8 µs
bunny_decimated
227.3 µs
18.12 ms
504.6 µs
2.72 ms
660.4 µs
4.77 ms
bunny
252.5 µs
215.99 ms
1.65 ms
11.63 ms
2.80 ms
16.84 ms
dragon
628.0 µs
out of memory (predicted)
14.00 ms
113.52 ms
33.72 ms
133.10 ms
happy_buddha
805.7 µs
out of memory (predicted)
14.80 ms
131.63 ms
40.97 ms
149.95 ms
lucy
17.13 ms
out of memory (predicted)
492.69 ms
4.932 s
1.817 s
5.315 s
query_nearest_hashgrid_k1
dragon (871 414 faces) · time relative to ordito, log scale · a red cross is a run that left no timeValues
Library
Median
Relative to ordito
ordito (CUDA)
933.1 µs
1x
MeshLib
15.05 ms
16x
Open3D
113.04 ms
121x
PyTorch3D (CUDA)
131.56 ms
141x
SciPy
131.58 ms
141x
libigl
out of memory (predicted)
All inputs
Input
ordito (CUDA)
libigl
MeshLib
Open3D
PyTorch3D (CUDA)
SciPy
sphere_small
258.6 µs
bunny_decimated
279.3 µs
18.36 ms
508.9 µs
2.72 ms
4.82 ms
4.80 ms
bunny
325.9 µs
216.10 ms
1.67 ms
11.74 ms
17.30 ms
17.39 ms
dragon
933.1 µs
out of memory (predicted)
15.05 ms
113.04 ms
131.56 ms
131.58 ms
happy_buddha
1.04 ms
out of memory (predicted)
14.35 ms
131.37 ms
153.21 ms
151.80 ms
lucy
18.14 ms
out of memory (predicted)
491.03 ms
4.837 s
5.483 s
5.323 s
query_nearest_bvh_k7
dragon (871 414 faces) · time relative to ordito, log scale · a red cross is a run that left no timeValues
Library
Median
Relative to ordito
ordito (CUDA)
1.85 ms
1x
PyTorch3D (CUDA)
44.53 ms
24x
Open3D
114.34 ms
62x
SciPy
144.94 ms
78x
libigl
out of memory (predicted)
All inputs
Input
ordito (CUDA)
libigl
Open3D
PyTorch3D (CUDA)
SciPy
sphere_small
372.6 µs
bunny_decimated
410.4 µs
23.03 ms
3.10 ms
940.0 µs
8.59 ms
bunny
487.5 µs
227.65 ms
12.89 ms
3.78 ms
26.63 ms
dragon
1.85 ms
out of memory (predicted)
114.34 ms
44.53 ms
144.94 ms
happy_buddha
1.92 ms
out of memory (predicted)
132.64 ms
52.80 ms
163.28 ms
lucy
51.49 ms
out of memory (predicted)
4.824 s
2.120 s
5.367 s
query_nearest_hashgrid_k7
dragon (871 414 faces) · time relative to ordito, log scale · a red cross is a run that left no timeValues
Library
Median
Relative to ordito
ordito (CUDA)
1.19 ms
1x
Open3D
117.72 ms
99x
PyTorch3D (CUDA)
145.38 ms
123x
SciPy
145.94 ms
123x
libigl
out of memory (predicted)
All inputs
Input
ordito (CUDA)
libigl
Open3D
PyTorch3D (CUDA)
SciPy
sphere_small
220.2 µs
bunny_decimated
341.5 µs
23.06 ms
3.04 ms
8.43 ms
8.87 ms
bunny
502.6 µs
232.59 ms
12.85 ms
26.03 ms
26.71 ms
dragon
1.19 ms
out of memory (predicted)
117.72 ms
145.38 ms
145.94 ms
happy_buddha
1.18 ms
out of memory (predicted)
133.57 ms
169.81 ms
166.94 ms
lucy
35.85 ms
out of memory (predicted)
4.823 s
5.508 s
5.348 s
query_ball_bvh
dragon (871 414 faces) · radius_scale=2.0 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
344.6 µs
1x
Open3D
1.68 ms
4.9x
PyTorch3D (CUDA)
44.06 ms
128x
SciPy
44.55 ms
129x
All inputs
Input
ordito (CUDA)
Open3D
PyTorch3D (CUDA)
SciPy
sphere_small radius_scale=2.0
227.8 µs
sphere_small radius_scale=4.0
501.1 µs
bunny_decimated radius_scale=2.0
297.7 µs
1.37 ms
17.69 ms
17.68 ms
bunny_decimated radius_scale=4.0
739.1 µs
2.46 ms
47.21 ms
47.26 ms
bunny radius_scale=2.0
299.9 µs
3.10 ms
43.35 ms
44.85 ms
bunny radius_scale=4.0
724.8 µs
5.38 ms
123.17 ms
131.25 ms
dragon radius_scale=2.0
344.6 µs
1.68 ms
44.06 ms
44.55 ms
dragon radius_scale=4.0
940.0 µs
4.27 ms
112.32 ms
115.23 ms
happy_buddha radius_scale=2.0
349.1 µs
1.67 ms
44.33 ms
44.85 ms
happy_buddha radius_scale=4.0
905.1 µs
4.20 ms
109.97 ms
112.43 ms
lucy radius_scale=2.0
206.0 µs
798.3 µs
66.37 ms
65.45 ms
lucy radius_scale=4.0
449.4 µs
1.39 ms
120.52 ms
118.46 ms
query_ball_hashgrid
dragon (871 414 faces) · grid_bins=32 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
1.02 ms
1x
Open3D
1.72 ms
1.7x
SciPy
44.42 ms
44x
PyTorch3D (CUDA)
116.78 ms
114x
All inputs
Input
ordito (CUDA)
Open3D
PyTorch3D (CUDA)
SciPy
sphere_small grid_bins=32
270.7 µs
sphere_small grid_bins=256
272.5 µs
bunny_decimated grid_bins=32
336.1 µs
1.50 ms
2.07 ms
17.51 ms
bunny_decimated grid_bins=256
326.9 µs
1.49 ms
2.07 ms
17.54 ms
bunny grid_bins=32
417.8 µs
3.11 ms
10.85 ms
43.29 ms
bunny grid_bins=256
341.6 µs
3.10 ms
10.85 ms
42.90 ms
dragon grid_bins=32
1.02 ms
1.72 ms
116.78 ms
44.42 ms
dragon grid_bins=256
399.5 µs
1.73 ms
112.01 ms
44.56 ms
happy_buddha grid_bins=32
1.16 ms
1.71 ms
139.05 ms
44.54 ms
happy_buddha grid_bins=256
395.9 µs
1.68 ms
139.03 ms
45.53 ms
lucy grid_bins=32
31.26 ms
830.0 µs
3.580 s
65.55 ms
lucy grid_bins=256
348.8 µs
854.3 µs
3.580 s
66.08 ms
query_nearest_bvh_k64
dragon (871 414 faces) · time relative to ordito, log scale · a red cross is a run that left no timeValues
Library
Median
Relative to ordito
ordito (CUDA)
3.50 ms
1x
Open3D
117.79 ms
34x
SciPy
265.30 ms
76x
libigl
out of memory (predicted)
All inputs
Input
ordito (CUDA)
libigl
Open3D
SciPy
sphere_small
696.0 µs
bunny_decimated
1.16 ms
50.91 ms
4.39 ms
46.93 ms
bunny
1.60 ms
304.79 ms
15.44 ms
120.89 ms
dragon
3.50 ms
out of memory (predicted)
117.79 ms
265.30 ms
happy_buddha
4.12 ms
out of memory (predicted)
135.41 ms
286.60 ms
lucy
57.50 ms
out of memory (predicted)
4.946 s
5.630 s
bvh_from_points
dragon (871 414 faces) · leaf_size=4 · time relative to ordito, log scale · a red cross is a run that left no timeValues
Library
Median
Relative to ordito
ordito (CUDA)
482.1 µs
1x
SciPy
90.85 ms
188x
libigl
out of memory (predicted)
All inputs
Input
ordito (CUDA)
libigl
SciPy
sphere_small leaf_size=4
154.2 µs
sphere_small leaf_size=32
158.1 µs
bunny_decimated leaf_size=4
183.3 µs
5.93 ms
1.32 ms
bunny_decimated leaf_size=32
184.1 µs
5.86 ms
1.30 ms
bunny leaf_size=4
195.1 µs
214.23 ms
6.35 ms
bunny leaf_size=32
202.5 µs
211.14 ms
6.35 ms
dragon leaf_size=4
482.1 µs
out of memory (predicted)
90.85 ms
dragon leaf_size=32
483.5 µs
out of memory (predicted)
91.75 ms
happy_buddha leaf_size=4
525.1 µs
out of memory (predicted)
109.56 ms
happy_buddha leaf_size=32
525.5 µs
out of memory (predicted)
109.59 ms
lucy leaf_size=4
12.43 ms
out of memory (predicted)
4.003 s
lucy leaf_size=32
12.51 ms
out of memory (predicted)
3.998 s
hashgrid_from_points
dragon (871 414 faces) · grid_bins=32 · time relative to ordito, log scale · a red cross is a run that left no timeValues
Library
Median
Relative to ordito
ordito (CUDA)
98.7 µs
1x
SciPy
90.94 ms
921x
libigl
out of memory (predicted)
All inputs
Input
ordito (CUDA)
libigl
SciPy
sphere_small grid_bins=32
46.8 µs
sphere_small grid_bins=256
135.6 µs
bunny_decimated grid_bins=32
84.0 µs
6.07 ms
1.32 ms
bunny_decimated grid_bins=256
154.9 µs
5.83 ms
1.30 ms
bunny grid_bins=32
77.4 µs
212.06 ms
6.32 ms
bunny grid_bins=256
152.5 µs
212.56 ms
6.29 ms
dragon grid_bins=32
98.7 µs
out of memory (predicted)
90.94 ms
dragon grid_bins=256
176.0 µs
out of memory (predicted)
90.53 ms
happy_buddha grid_bins=32
101.2 µs
out of memory (predicted)
109.16 ms
happy_buddha grid_bins=256
188.9 µs
out of memory (predicted)
108.84 ms
lucy grid_bins=32
869.7 µs
out of memory (predicted)
3.986 s
lucy grid_bins=256
1.09 ms
out of memory (predicted)
4.006 s
query_bvh_box
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
649.4 µs
1x
Open3D
186.86 ms
288x
All inputs
Input
ordito (CUDA)
Open3D
sphere_small
448.0 µs
bunny_decimated
585.7 µs
5.86 ms
bunny
551.5 µs
17.35 ms
dragon
649.4 µs
186.86 ms
happy_buddha
533.5 µs
291.79 ms
lucy
257.0 µs
8.034 s
query_ball
dragon (871 414 faces) · radius_scale=2.0 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
20.08 ms
1x
SciPy
45.12 ms
2.2x
All inputs
Input
ordito (CUDA)
SciPy
sphere_small radius_scale=2.0
3.04 ms
sphere_small radius_scale=4.0
2.80 ms
bunny_decimated radius_scale=2.0
8.62 ms
18.22 ms
bunny_decimated radius_scale=4.0
9.06 ms
45.53 ms
bunny radius_scale=2.0
21.77 ms
44.19 ms
bunny radius_scale=4.0
25.02 ms
130.87 ms
dragon radius_scale=2.0
20.08 ms
45.12 ms
dragon radius_scale=4.0
101.96 ms
113.87 ms
happy_buddha radius_scale=2.0
20.76 ms
45.21 ms
happy_buddha radius_scale=4.0
21.74 ms
112.32 ms
lucy radius_scale=2.0
19.53 ms
66.45 ms
lucy radius_scale=4.0
20.40 ms
119.26 ms
query_ball_count
dragon (871 414 faces) · radius_scale=2.0 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
185.9 µs
1x
SciPy
40.24 ms
216x
All inputs
Input
ordito (CUDA)
SciPy
sphere_small radius_scale=2.0
116.8 µs
sphere_small radius_scale=4.0
284.9 µs
bunny_decimated radius_scale=2.0
160.6 µs
12.73 ms
bunny_decimated radius_scale=4.0
421.2 µs
23.30 ms
bunny radius_scale=2.0
168.8 µs
32.58 ms
bunny radius_scale=4.0
410.6 µs
58.25 ms
dragon radius_scale=2.0
185.9 µs
40.24 ms
dragon radius_scale=4.0
525.7 µs
75.29 ms
happy_buddha radius_scale=2.0
189.4 µs
39.94 ms
happy_buddha radius_scale=4.0
517.4 µs
73.44 ms
lucy radius_scale=2.0
106.2 µs
65.42 ms
lucy radius_scale=4.0
245.6 µs
113.87 ms
closest_pair
sphere_large (327 680 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
419.1 µs
1x
MeshLib
7.39 ms
18x
SciPy
113.14 ms
270x
All inputs
Input
ordito (CUDA)
MeshLib
SciPy
sphere_small
216.3 µs
656.7 µs
1.51 ms
sphere_med
286.6 µs
2.36 ms
26.14 ms
sphere_large
419.1 µs
7.39 ms
113.14 ms
nearest_neighbor_distance
sphere_large (327 680 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
376.1 µs
1x
MeshLib
6.89 ms
18x
Open3D
41.14 ms
109x
All inputs
Input
ordito (CUDA)
MeshLib
Open3D
sphere_small
199.1 µs
364.7 µs
772.4 µs
sphere_med
255.8 µs
2.00 ms
11.44 ms
sphere_large
376.1 µs
6.89 ms
41.14 ms
query_ball_sum
dragon (871 414 faces) · radius_scale=2.0 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
143.5 µs
1x
SciPy
111.05 ms
774x
All inputs
Input
ordito (CUDA)
SciPy
sphere_small radius_scale=2.0
90.7 µs
sphere_small radius_scale=4.0
199.9 µs
bunny_decimated radius_scale=2.0
120.7 µs
49.18 ms
bunny_decimated radius_scale=4.0
295.6 µs
92.67 ms
bunny radius_scale=2.0
113.7 µs
118.76 ms
bunny radius_scale=4.0
279.2 µs
250.13 ms
dragon radius_scale=2.0
143.5 µs
111.05 ms
dragon radius_scale=4.0
379.1 µs
206.84 ms
happy_buddha radius_scale=2.0
140.6 µs
110.11 ms
happy_buddha radius_scale=4.0
350.5 µs
203.88 ms
lucy radius_scale=2.0
87.8 µs
125.80 ms
lucy radius_scale=4.0
183.3 µs
186.35 ms
Without a reference
No other library computes these, so they have no comparison. ordito (CUDA)'s median time on the largest input it was measured on: