Skip to content

proximity

Benchmarks of ordito.proximity 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.

Measured on GPU: NVIDIA GeForce RTX 5090 · CPU: Intel Xeon w7-2495X

Summary

0.1x1x10x100x1000x10000xordito (CUDA): the reference, 1xordito (CUDA)1xMeshLib: 2.7x ordito's time, geometric mean over 4 functions; slower than ordito in 2MeshLib2.7x (4)SciPy: 40x ordito's time, geometric mean over 1 functions; slower than ordito in 1SciPy40x (1)Open3D: 47x ordito's time, geometric mean over 2 functions; slower than ordito in 2Open3D47x (2)PyVista: 156x ordito's time, geometric mean over 5 functions; slower than ordito in 5PyVista156x (5)libigl: 220x ordito's time, geometric mean over 3 functions; slower than ordito in 3libigl220x (3)MeshLab: 953x ordito's time, geometric mean over 1 functions; slower than ordito in 1MeshLab953x (1)trimesh: 3067x ordito's time, geometric mean over 2 functions; slower than ordito in 2trimesh3067x (2)
Time relative to ordito (CUDA), geometric mean over the proximity 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 2.7x 4 2
SciPy 40x 1 1
Open3D 47x 2 2
PyVista 156x 5 5
libigl 220x 3 3
MeshLab 953x 1 1
trimesh 3067x 2 2

winding_number

0.1x1x10x100x1000x10000xordito (CUDA): 1.65 ms, 1x ordito's timeordito (CUDA)1x · 1.65 msMeshLib: 108.00 ms, 65x ordito's timeMeshLib65x · 108.00 msPyVista: 1.015 s, 615x ordito's timePyVista615x · 1.015 slibigl: 3.763 s, 2279x ordito's timelibigl2279x · 3.763 s
dragon (871 414 faces) · n_queries=10000 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 1.65 ms 1x
MeshLib 108.00 ms 65x
PyVista 1.015 s 615x
libigl 3.763 s 2279x
All inputs
Input ordito (CUDA) libigl MeshLib PyVista
sphere_small n_queries=10000 243.7 µs
sphere_small n_queries=100000 986.3 µs
bunny_decimated n_queries=10000 639.4 µs 59.03 ms 62.42 ms 148.28 ms
bunny_decimated n_queries=100000 1.36 ms 110.67 ms 623.40 ms 1.399 s
bunny n_queries=10000 519.0 µs 226.96 ms 59.57 ms 266.22 ms
bunny n_queries=100000 1.67 ms 330.44 ms 592.77 ms 2.566 s
dragon n_queries=10000 1.65 ms 3.763 s 108.00 ms 1.015 s
dragon n_queries=100000 5.60 ms 4.109 s 1.074 s 8.484 s
happy_buddha n_queries=10000 1.69 ms 4.811 s 122.31 ms 1.140 s
happy_buddha n_queries=100000 4.45 ms 5.130 s 1.223 s 9.465 s
lucy n_queries=10000 28.75 ms 203.750 s 173.98 ms 32.568 s
lucy n_queries=100000 47.98 ms 200.658 s 1.624 s 208.110 s

closest_point_on_mesh

0.01x0.1x1x10x100x1000x10000xMeshLib: 3.17 ms, 0.93x ordito's timeMeshLib0.93x · 3.17 msordito (CUDA): 3.42 ms, 1x ordito's timeordito (CUDA)1x · 3.42 msOpen3D: 271.77 ms, 80x ordito's timeOpen3D80x · 271.77 mslibigl: 708.06 ms, 207x ordito's timelibigl207x · 708.06 msPyVista: 1.089 s, 319x ordito's timePyVista319x · 1.089 strimesh: 25.714 s, 7524x ordito's timetrimesh7524x · 25.714 s
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 3.17 ms 0.93x
ordito (CUDA) 3.42 ms 1x
Open3D 271.77 ms 80x
libigl 708.06 ms 207x
PyVista 1.089 s 319x
trimesh 25.714 s 7524x
All inputs
Input ordito (CUDA) libigl MeshLib Open3D PyVista trimesh
sphere_small 1.35 ms
bunny_decimated 1.00 ms 16.68 ms 1.10 ms 10.45 ms 118.46 ms 1.105 s
bunny 1.57 ms 65.28 ms 1.74 ms 27.70 ms 253.80 ms 3.442 s
dragon 3.42 ms 708.06 ms 3.17 ms 271.77 ms 1.089 s 25.714 s
happy_buddha 3.91 ms 864.23 ms 3.29 ms 332.03 ms 1.198 s 37.563 s
lucy 67.85 ms 29.453 s 19.07 ms 24.733 s 41.654 s out of memory

closest_point_on_edges

0.1x1x10x100xordito (CUDA): 490.9 µs, 1x ordito's timeordito (CUDA)1x · 490.9 µsPyVista: 43.51 ms, 89x ordito's timePyVista89x · 43.51 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 490.9 µs 1x
PyVista 43.51 ms 89x
All inputs
Input ordito (CUDA) PyVista
tangle_torus_small 476.3 µs
bunny_decimated 376.7 µs 29.86 ms
bunny 370.2 µs 31.73 ms
dragon 490.9 µs 43.51 ms
happy_buddha 656.2 µs 65.01 ms
lucy 1.10 ms 149.10 ms

signed_distance_on_mesh

0.1x1x10x100x1000x10000xordito (CUDA): 4.69 ms, 1x ordito's timeordito (CUDA)1x · 4.69 msMeshLib: 34.05 ms, 7.3x ordito's timeMeshLib7.3x · 34.05 msOpen3D: 270.03 ms, 58x ordito's timeOpen3D58x · 270.03 msPyVista: 1.025 s, 219x ordito's timePyVista219x · 1.025 slibigl: 1.124 s, 240x ordito's timelibigl240x · 1.124 sMeshLab: 7.289 s, 1554x ordito's timeMeshLab1554x · 7.289 strimesh: 26.022 s, 5548x ordito's timetrimesh5548x · 26.022 s
dragon (871 414 faces) · sign_mode=parity · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 4.69 ms 1x
MeshLib 34.05 ms 7.3x
Open3D 270.03 ms 58x
PyVista 1.025 s 219x
libigl 1.124 s 240x
MeshLab 7.289 s 1554x
trimesh 26.022 s 5548x
All inputs
Input ordito (CUDA) libigl MeshLab MeshLib Open3D PyVista trimesh
sphere_small sign_mode=parity 1.72 ms
sphere_small sign_mode=winding 2.48 ms
sphere_small sign_mode=pseudonormal 1.57 ms
bunny_decimated sign_mode=parity 1.60 ms 28.76 ms 182.53 ms 8.61 ms 10.92 ms 145.96 ms 1.120 s
bunny_decimated sign_mode=winding 2.49 ms 43.81 ms
bunny_decimated sign_mode=pseudonormal 1.36 ms 30.90 ms
bunny sign_mode=parity 2.35 ms 101.74 ms 587.99 ms 5.68 ms 29.91 ms 259.93 ms 3.481 s
bunny sign_mode=winding 3.13 ms 139.86 ms
bunny sign_mode=pseudonormal 2.12 ms 109.68 ms
dragon sign_mode=parity 4.69 ms 1.124 s 7.289 s 34.05 ms 270.03 ms 1.025 s 26.022 s
dragon sign_mode=winding 8.01 ms 1.489 s
dragon sign_mode=pseudonormal 4.42 ms 1.140 s
happy_buddha sign_mode=parity 4.97 ms 1.395 s 11.367 s 39.42 ms 330.83 ms 1.153 s 38.583 s
happy_buddha sign_mode=winding 8.40 ms 1.887 s
happy_buddha sign_mode=pseudonormal 4.51 ms 1.406 s
lucy sign_mode=parity 70.75 ms 44.535 s 547.114 s 4.195 s 24.651 s 33.918 s out of memory
lucy sign_mode=winding 138.38 ms 55.086 s
lucy sign_mode=pseudonormal 71.08 ms 45.235 s

containing_faces_2d

0.1x1x10x100xordito (CUDA): 156.1 µs, 1x ordito's timeordito (CUDA)1x · 156.1 µsSciPy: 2.49 ms, 16x ordito's timeSciPy16x · 2.49 msPyVista: 3.91 ms, 25x ordito's timePyVista25x · 3.91 ms
rows=26 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 156.1 µs 1x
SciPy 2.49 ms 16x
PyVista 3.91 ms 25x
All inputs
Input ordito (CUDA) PyVista SciPy
rows=26 156.1 µs 3.91 ms 2.49 ms
rows=80 236.5 µs 4.19 ms 8.12 ms
rows=240 345.2 µs 5.34 ms 41.53 ms

mesh_to_mesh_distance

0.01x0.1x1xMeshLib: 414.9 µs, 0.20x ordito's timeMeshLib0.20x · 414.9 µsordito (CUDA): 2.04 ms, 1x ordito's timeordito (CUDA)1x · 2.04 ms
dragon (871 414 faces) · offset=1.2 · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 414.9 µs 0.20x
ordito (CUDA) 2.04 ms 1x
All inputs
Input ordito (CUDA) manifold3d MeshLib
sphere_small offset=1.2 329.3 µs
sphere_small offset=2.0 314.8 µs
bunny_decimated offset=1.2 815.6 µs 611.9 µs
bunny_decimated offset=2.0 682.3 µs 176.6 µs
bunny offset=1.2 1.33 ms 500.2 µs
bunny offset=2.0 1.24 ms 574.1 µs
dragon offset=1.2 2.04 ms 414.9 µs
dragon offset=2.0 1.75 ms 70.2 µs
happy_buddha offset=1.2 1.99 ms > 10 min 60.5 µs
happy_buddha offset=2.0 1.87 ms > 10 min 62.0 µs
lucy offset=1.2 48.31 ms > 10 min (predicted) 1.08 ms
lucy offset=2.0 45.45 ms > 10 min (predicted) 116.6 µs

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:

Function Input ordito (CUDA)
winding_number_serial lucy 11.362 s
normals_at_closest_faces lucy 29.58 ms
signed_distance_lattice sphere_large 89.7 µs
query_mesh_aabb_with_offsets lucy 150.9 µs