Skip to content

bounds

Benchmarks of ordito.bounds 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.01x0.1x1x10x100x1000xPyVista: 0.14x ordito's time, geometric mean over 3 functions; slower than ordito in 1PyVista0.14x (3)ordito (CUDA): the reference, 1xordito (CUDA)1xMeshLib: 1.1x ordito's time, geometric mean over 1 functions; slower than ordito in 1MeshLib1.1x (1)PyTorch3D (CUDA): 1.9x ordito's time, geometric mean over 1 functions; slower than ordito in 1PyTorch3D (CUDA)1.9x (1)Open3D: 9.6x ordito's time, geometric mean over 8 functions; slower than ordito in 8Open3D9.6x (8)trimesh: 120x ordito's time, geometric mean over 2 functions; slower than ordito in 2trimesh120x (2)libigl: 127x ordito's time, geometric mean over 3 functions; slower than ordito in 3libigl127x (3)
Time relative to ordito (CUDA), geometric mean over the bounds 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
PyVista 0.14x 3 1
MeshLib 1.1x 1 1
PyTorch3D (CUDA) 1.9x 1 1
Open3D 9.6x 8 8
trimesh 120x 2 2
libigl 127x 3 3

aabb

0.001x0.01x0.1x1x10x100x1000xPyVista: 1.2 µs, 0.02x ordito's timePyVista0.02x · 1.2 µsordito (CUDA): 55.9 µs, 1x ordito's timeordito (CUDA)1x · 55.9 µsMeshLib: 74.6 µs, 1.3x ordito's timeMeshLib1.3x · 74.6 µsPyTorch3D (CUDA): 128.8 µs, 2.3x ordito's timePyTorch3D (CUDA)2.3x · 128.8 µsOpen3D: 860.0 µs, 15x ordito's timeOpen3D15x · 860.0 µslibigl: 9.69 ms, 173x ordito's timelibigl173x · 9.69 mstrimesh: 13.93 ms, 249x ordito's timetrimesh249x · 13.93 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
PyVista 1.2 µs 0.02x
ordito (CUDA) 55.9 µs 1x
MeshLib 74.6 µs 1.3x
PyTorch3D (CUDA) 128.8 µs 2.3x
Open3D 860.0 µs 15x
libigl 9.69 ms 173x
trimesh 13.93 ms 249x
All inputs
Input ordito (CUDA) libigl MeshLib Open3D PyTorch3D (CUDA) PyVista trimesh
sphere_small 47.4 µs
bunny_decimated 54.4 µs 213.9 µs 16.0 µs 22.0 µs 134.7 µs 1.6 µs 311.7 µs
bunny 58.6 µs 807.2 µs 21.6 µs 72.5 µs 119.8 µs 1.3 µs 1.16 ms
dragon 55.9 µs 9.69 ms 74.6 µs 860.0 µs 128.8 µs 1.2 µs 13.93 ms
happy_buddha 62.3 µs 12.05 ms 83.6 µs 1.04 ms 130.1 µs 1.2 µs 17.08 ms
lucy 281.7 µs 710.25 ms 2.26 ms 90.68 ms 314.1 µs 1.2 µs 439.05 ms

enclosing_diagonal

0.001x0.01x0.1x1x10x100xPyVista: 0.9 µs, 0.01x ordito's timePyVista0.01x · 0.9 µsordito (CUDA): 60.8 µs, 1x ordito's timeordito (CUDA)1x · 60.8 µslibigl: 4.18 ms, 69x ordito's timelibigl69x · 4.18 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
PyVista 0.9 µs 0.01x
ordito (CUDA) 60.8 µs 1x
libigl 4.18 ms 69x
All inputs
Input ordito (CUDA) libigl PyVista
sphere_small 73.4 µs
bunny_decimated 66.5 µs 134.7 µs 0.8 µs
bunny 59.6 µs 401.1 µs 0.7 µs
dragon 60.8 µs 4.18 ms 0.9 µs
happy_buddha 65.6 µs 8.37 ms 0.9 µs
lucy 299.3 µs 353.46 ms 1.2 µs

points_in_aabb

0.1x1x10x100xordito (CUDA): 61.6 µs, 1x ordito's timeordito (CUDA)1x · 61.6 µsOpen3D: 968.6 µs, 16x ordito's timeOpen3D16x · 968.6 µs
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 61.6 µs 1x
Open3D 968.6 µs 16x
All inputs
Input ordito (CUDA) Open3D
sphere_small 47.7 µs 16.7 µs
sphere_med 43.2 µs 248.9 µs
sphere_large 61.6 µs 968.6 µs

points_in_aabb_mask

0.1x1x10x100xordito (CUDA): 24.4 µs, 1x ordito's timeordito (CUDA)1x · 24.4 µsOpen3D: 537.8 µs, 22x ordito's timeOpen3D22x · 537.8 µs
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 24.4 µs 1x
Open3D 537.8 µs 22x
All inputs
Input ordito (CUDA) Open3D
sphere_small 28.1 µs 8.7 µs
sphere_med 25.4 µs 129.6 µs
sphere_large 24.4 µs 537.8 µs

points_in_obb

0.1x1x10x100xordito (CUDA): 41.0 µs, 1x ordito's timeordito (CUDA)1x · 41.0 µsOpen3D: 636.0 µs, 16x ordito's timeOpen3D16x · 636.0 µs
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 41.0 µs 1x
Open3D 636.0 µs 16x
All inputs
Input ordito (CUDA) Open3D
sphere_small 61.6 µs 15.5 µs
sphere_med 39.3 µs 171.1 µs
sphere_large 41.0 µs 636.0 µs

points_in_obb_mask

0.1x1x10x100xordito (CUDA): 16.3 µs, 1x ordito's timeordito (CUDA)1x · 16.3 µsOpen3D: 645.5 µs, 40x ordito's timeOpen3D40x · 645.5 µs
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 16.3 µs 1x
Open3D 645.5 µs 40x
All inputs
Input ordito (CUDA) Open3D
sphere_small 19.1 µs 14.4 µs
sphere_med 26.7 µs 170.0 µs
sphere_large 16.3 µs 645.5 µs

crop_points

0.1x1x10x100xordito (CUDA): 45.4 µs, 1x ordito's timeordito (CUDA)1x · 45.4 µsOpen3D: 581.7 µs, 13x ordito's timeOpen3D13x · 581.7 µs
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 45.4 µs 1x
Open3D 581.7 µs 13x
All inputs
Input ordito (CUDA) Open3D
sphere_small 70.5 µs 15.5 µs
sphere_med 44.9 µs 138.2 µs
sphere_large 45.4 µs 581.7 µs

crop_mesh

0.1x1x10x100x1000xordito (CUDA): 64.8 µs, 1x ordito's timeordito (CUDA)1x · 64.8 µsOpen3D: 10.56 ms, 163x ordito's timeOpen3D163x · 10.56 ms
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 64.8 µs 1x
Open3D 10.56 ms 163x
All inputs
Input ordito (CUDA) Open3D
sphere_small 79.2 µs 196.4 µs
sphere_med 66.8 µs 2.08 ms
sphere_large 64.8 µs 10.56 ms

oriented_bounding_box

0.1x1x10x100x1000x10000xordito (CUDA): 1.22 ms, 1x ordito's timeordito (CUDA)1x · 1.22 msPyVista: 19.65 ms, 16x ordito's timePyVista16x · 19.65 mstrimesh: 154.05 ms, 126x ordito's timetrimesh126x · 154.05 msOpen3D: 2.035 s, 1667x ordito's timeOpen3D1667x · 2.035 slibigl: 2.378 s, 1947x ordito's timelibigl1947x · 2.378 s
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 1.22 ms 1x
PyVista 19.65 ms 16x
trimesh 154.05 ms 126x
Open3D 2.035 s 1667x
libigl 2.378 s 1947x
All inputs
Input ordito (CUDA) libigl Open3D PyVista trimesh
sphere_small 386.9 µs
bunny_decimated 458.5 µs 8.28 ms 189.69 ms 3.90 ms 30.94 ms
bunny 776.1 µs 34.06 ms 905.55 ms 4.70 ms 66.67 ms
dragon 1.22 ms 2.378 s 2.035 s 19.65 ms 154.05 ms
happy_buddha 1.38 ms 3.094 s 11.339 s 23.23 ms 307.15 ms
lucy 8.19 ms 128.464 s 3.163 s 973.70 ms 2.515 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)
aabb_union — 13.6 µs
box_diagonal — 6.4 µs