Skip to content

triangles

Benchmarks of ordito.triangles 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)1xPyTorch3D (CUDA): 1.4x ordito's time, geometric mean over 1 functions; slower than ordito in 1PyTorch3D (CUDA)1.4x (1)MeshLib: 12x ordito's time, geometric mean over 2 functions; slower than ordito in 2MeshLib12x (2)MeshLab: 54x ordito's time, geometric mean over 2 functions; slower than ordito in 2MeshLab54x (2)Open3D: 73x ordito's time, geometric mean over 1 functions; slower than ordito in 1Open3D73x (1)NumPy: 390x ordito's time, geometric mean over 1 functions; slower than ordito in 1NumPy390x (1)libigl: 453x ordito's time, geometric mean over 5 functions; slower than ordito in 5libigl453x (5)PyVista: 507x ordito's time, geometric mean over 4 functions; slower than ordito in 4PyVista507x (4)potpourri3d: 958x ordito's time, geometric mean over 1 functions; slower than ordito in 1potpourri3d958x (1)trimesh: 1434x ordito's time, geometric mean over 6 functions; slower than ordito in 6trimesh1434x (6)
Time relative to ordito (CUDA), geometric mean over the triangles 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
PyTorch3D (CUDA) 1.4x 1 1
MeshLib 12x 2 2
MeshLab 54x 2 2
Open3D 73x 1 1
NumPy 390x 1 1
libigl 453x 5 5
PyVista 507x 4 4
potpourri3d 958x 1 1
trimesh 1434x 6 6

face_normals_and_areas

0.1x1x10x100x1000x10000xordito (CUDA): 24.1 µs, 1x ordito's timeordito (CUDA)1x · 24.1 µsPyTorch3D (CUDA): 36.8 µs, 1.5x ordito's timePyTorch3D (CUDA)1.5x · 36.8 µsMeshLib: 1.01 ms, 42x ordito's timeMeshLib42x · 1.01 msOpen3D: 5.36 ms, 222x ordito's timeOpen3D222x · 5.36 mslibigl: 5.69 ms, 236x ordito's timelibigl236x · 5.69 msMeshLab: 12.32 ms, 510x ordito's timeMeshLab510x · 12.32 msPyVista: 55.33 ms, 2291x ordito's timePyVista2291x · 55.33 mspotpourri3d: 81.99 ms, 3395x ordito's timepotpourri3d3395x · 81.99 mstrimesh: 89.24 ms, 3696x ordito's timetrimesh3696x · 89.24 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 24.1 µs 1x
PyTorch3D (CUDA) 36.8 µs 1.5x
MeshLib 1.01 ms 42x
Open3D 5.36 ms 222x
libigl 5.69 ms 236x
MeshLab 12.32 ms 510x
PyVista 55.33 ms 2291x
potpourri3d 81.99 ms 3395x
trimesh 89.24 ms 3696x
All inputs
Input ordito (CUDA) libigl MeshLab MeshLib Open3D potpourri3d PyTorch3D (CUDA) PyVista trimesh
sphere_small 28.1 µs
bunny_decimated 22.9 µs 92.0 µs 180.0 µs 32.5 µs 83.0 µs 976.6 µs 24.2 µs 1.39 ms 701.2 µs
bunny 18.2 µs 531.9 µs 581.6 µs 97.9 µs 401.7 µs 4.57 ms 24.0 µs 4.97 ms 3.49 ms
dragon 24.1 µs 5.69 ms 12.32 ms 1.01 ms 5.36 ms 81.99 ms 36.8 µs 55.33 ms 89.24 ms
happy_buddha 26.5 µs 7.25 ms 15.69 ms 1.50 ms 7.17 ms 104.56 ms 41.9 µs 68.83 ms 113.33 ms
lucy 650.6 µs 475.18 ms 509.73 ms 154.49 ms 273.29 ms 3.664 s 1.07 ms 2.319 s 2.759 s

face_angles

0.1x1x10x100x1000x10000xordito (CUDA): 31.3 µs, 1x ordito's timeordito (CUDA)1x · 31.3 µslibigl: 84.71 ms, 2703x ordito's timelibigl2703x · 84.71 msPyVista: 121.66 ms, 3883x ordito's timePyVista3883x · 121.66 mstrimesh: 231.94 ms, 7402x ordito's timetrimesh7402x · 231.94 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 31.3 µs 1x
libigl 84.71 ms 2703x
PyVista 121.66 ms 3883x
trimesh 231.94 ms 7402x
All inputs
Input ordito (CUDA) libigl PyVista trimesh
sphere_small 21.2 µs
bunny_decimated 27.3 µs 1.54 ms 2.76 ms 2.37 ms
bunny 20.1 µs 6.20 ms 8.75 ms 9.96 ms
dragon 31.3 µs 84.71 ms 121.66 ms 231.94 ms
happy_buddha 48.2 µs 105.45 ms 153.31 ms 277.84 ms
lucy 582.8 µs 3.172 s 4.513 s 6.659 s

face_quality

0.1x1x10x100x1000x10000xordito (CUDA): 23.5 µs, 1x ordito's timeordito (CUDA)1x · 23.5 µsMeshLab: 451.6 µs, 19x ordito's timeMeshLab19x · 451.6 µsPyVista: 2.23 ms, 95x ordito's timePyVista95x · 2.23 mslibigl: 38.36 ms, 1629x ordito's timelibigl1629x · 38.36 ms
saddle (34 848 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 23.5 µs 1x
MeshLab 451.6 µs 19x
PyVista 2.23 ms 95x
libigl 38.36 ms 1629x
All inputs
Input ordito (CUDA) libigl MeshLab PyVista
saddle 23.5 µs 38.36 ms 451.6 µs 2.23 ms
saddle_graded 21.2 µs 38.35 ms 454.4 µs 2.17 ms

barycentric_to_points

0.1x1x10x100x1000x10000xordito (CUDA): 21.3 µs, 1x ordito's timeordito (CUDA)1x · 21.3 µstrimesh: 72.18 ms, 3386x ordito's timetrimesh3386x · 72.18 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 21.3 µs 1x
trimesh 72.18 ms 3386x
All inputs
Input ordito (CUDA) trimesh
sphere_small 21.6 µs
bunny_decimated 17.0 µs 1.19 ms
bunny 16.2 µs 4.99 ms
dragon 21.3 µs 72.18 ms
happy_buddha 25.6 µs 90.80 ms
lucy 773.2 µs 2.438 s

points_to_barycentric

0.1x1x10x100x1000x10000xordito (CUDA): 21.5 µs, 1x ordito's timeordito (CUDA)1x · 21.5 µslibigl: 85.17 ms, 3954x ordito's timelibigl3954x · 85.17 mstrimesh: 130.76 ms, 6070x ordito's timetrimesh6070x · 130.76 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 21.5 µs 1x
libigl 85.17 ms 3954x
trimesh 130.76 ms 6070x
All inputs
Input ordito (CUDA) libigl trimesh
sphere_small 20.9 µs
bunny_decimated 17.7 µs 516.2 µs 1.21 ms
bunny 16.3 µs 2.77 ms 5.41 ms
dragon 21.5 µs 85.17 ms 130.76 ms
happy_buddha 27.6 µs 109.90 ms 163.56 ms
lucy 776.0 µs 3.573 s 3.907 s

face_centroids

0.1x1x10x100x1000x10000xordito (CUDA): 29.7 µs, 1x ordito's timeordito (CUDA)1x · 29.7 µslibigl: 11.93 ms, 402x ordito's timelibigl402x · 11.93 msPyVista: 48.22 ms, 1623x ordito's timePyVista1623x · 48.22 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 29.7 µs 1x
libigl 11.93 ms 402x
PyVista 48.22 ms 1623x
All inputs
Input ordito (CUDA) libigl PyVista
sphere_small 21.0 µs
bunny_decimated 21.8 µs 319.0 µs 1.03 ms
bunny 22.0 µs 883.5 µs 3.84 ms
dragon 29.7 µs 11.93 ms 48.22 ms
happy_buddha 32.8 µs 14.20 ms 59.64 ms
lucy 584.1 µs 860.06 ms 2.139 s

face_signed_volumes

0.1x1x10x100x1000x10000xordito (CUDA): 28.8 µs, 1x ordito's timeordito (CUDA)1x · 28.8 µsNumPy: 47.42 ms, 1647x ordito's timeNumPy1647x · 47.42 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 28.8 µs 1x
NumPy 47.42 ms 1647x
All inputs
Input ordito (CUDA) NumPy
sphere_small 31.1 µs
bunny_decimated 27.5 µs 305.0 µs
bunny 24.1 µs 1.82 ms
dragon 28.8 µs 47.42 ms
happy_buddha 39.4 µs 60.45 ms
lucy 421.8 µs 1.794 s

face_nondegenerate_mask

0.1x1x10x100x1000x10000xordito (CUDA): 28.0 µs, 1x ordito's timeordito (CUDA)1x · 28.0 µstrimesh: 132.83 ms, 4748x ordito's timetrimesh4748x · 132.83 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 28.0 µs 1x
trimesh 132.83 ms 4748x
All inputs
Input ordito (CUDA) trimesh
sphere_small 28.2 µs
bunny_decimated 19.3 µs 1.59 ms
bunny 21.3 µs 7.49 ms
dragon 28.0 µs 132.83 ms
happy_buddha 30.7 µs 163.62 ms
lucy 356.0 µs 4.914 s

corner_normals

0.1x1x10x100xordito (CUDA): 229.4 µs, 1x ordito's timeordito (CUDA)1x · 229.4 µsMeshLib: 4.17 ms, 18x ordito's timeMeshLib18x · 4.17 ms
dragon (871 414 faces) · creased=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 229.4 µs 1x
MeshLib 4.17 ms 18x
All inputs
Input ordito (CUDA) manifold3d MeshLib
sphere_small creased=False 218.0 µs
sphere_small creased=True 159.6 µs
bunny creased=False 148.8 µs 315.0 µs
bunny creased=True 206.7 µs 421.5 µs
dragon creased=False 229.4 µs 4.17 ms
dragon creased=True 486.3 µs 4.61 ms
happy_buddha creased=False 398.3 µs failed 5.39 ms
happy_buddha creased=True 683.8 µs > 10 min 5.78 ms
lucy creased=True > 10 min (predicted)

triangle_closest_point

0.1x1x10x100x1000x10000x100000xordito (CUDA): 30.2 µs, 1x ordito's timeordito (CUDA)1x · 30.2 µstrimesh: 347.32 ms, 11503x ordito's timetrimesh11503x · 347.32 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 30.2 µs 1x
trimesh 347.32 ms 11503x
All inputs
Input ordito (CUDA) trimesh
sphere_small 21.1 µs
bunny_decimated 23.1 µs 3.45 ms
bunny 21.3 µs 15.50 ms
dragon 30.2 µs 347.32 ms
happy_buddha 35.1 µs 407.28 ms
lucy 763.7 µs 9.418 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)
corner_normals_valence fan_hub creased=True 1.01 ms