Skip to content

laplacian

Benchmarks of ordito.laplacian 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): 3.9x ordito's time, geometric mean over 4 functions; slower than ordito in 4PyTorch3D (CUDA)3.9x (4)potpourri3d: 240x ordito's time, geometric mean over 2 functions; slower than ordito in 2potpourri3d240x (2)libigl: 265x ordito's time, geometric mean over 7 functions; slower than ordito in 7libigl265x (7)trimesh: 685x ordito's time, geometric mean over 2 functions; slower than ordito in 2trimesh685x (2)PyVista: 1629x ordito's time, geometric mean over 1 functions; slower than ordito in 1PyVista1629x (1)
Time relative to ordito (CUDA), geometric mean over the laplacian 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) 3.9x 4 4
potpourri3d 240x 2 2
libigl 265x 7 7
trimesh 685x 2 2
PyVista 1629x 1 1

cotmatrix

0.1x1x10x100x1000xordito (CUDA): 753.5 µs, 1x ordito's timeordito (CUDA)1x · 753.5 µsPyTorch3D (CUDA): 2.90 ms, 3.9x ordito's timePyTorch3D (CUDA)3.9x · 2.90 mslibigl: 253.11 ms, 336x ordito's timelibigl336x · 253.11 mspotpourri3d: 623.36 ms, 827x ordito's timepotpourri3d827x · 623.36 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 753.5 µs 1x
PyTorch3D (CUDA) 2.90 ms 3.9x
libigl 253.11 ms 336x
potpourri3d 623.36 ms 827x
All inputs
Input ordito (CUDA) libigl potpourri3d PyTorch3D (CUDA)
sphere_small 196.7 µs
bunny_decimated 168.8 µs 7.02 ms 7.44 ms 526.5 µs
bunny 183.3 µs 17.40 ms 35.26 ms 618.9 µs
dragon 753.5 µs 253.11 ms 623.36 ms 2.90 ms
happy_buddha 1.00 ms 315.36 ms 793.33 ms 3.77 ms
lucy 35.15 ms 8.974 s 24.493 s 127.20 ms

laplacian_equal_weight

0.1x1x10x100x1000xordito (CUDA): 490.0 µs, 1x ordito's timeordito (CUDA)1x · 490.0 µsPyTorch3D (CUDA): 1.93 ms, 3.9x ordito's timePyTorch3D (CUDA)3.9x · 1.93 mstrimesh: 123.73 ms, 253x ordito's timetrimesh253x · 123.73 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 490.0 µs 1x
PyTorch3D (CUDA) 1.93 ms 3.9x
trimesh 123.73 ms 253x
All inputs
Input ordito (CUDA) PyTorch3D (CUDA) trimesh
sphere_small 137.3 µs
bunny_decimated 126.4 µs 390.3 µs 1.93 ms
bunny 118.2 µs 440.9 µs 7.94 ms
dragon 490.0 µs 1.93 ms 123.73 ms
happy_buddha 549.8 µs 2.73 ms 146.48 ms
lucy 19.49 ms 120.63 ms 4.788 s

laplacian_inverse_distance

0.1x1x10x100x1000x10000x100000xordito (CUDA): 520.8 µs, 1x ordito's timeordito (CUDA)1x · 520.8 µsPyTorch3D (CUDA): 1.67 ms, 3.2x ordito's timePyTorch3D (CUDA)3.2x · 1.67 mstrimesh: 5.832 s, 11198x ordito's timetrimesh11198x · 5.832 s
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 520.8 µs 1x
PyTorch3D (CUDA) 1.67 ms 3.2x
trimesh 5.832 s 11198x
All inputs
Input ordito (CUDA) PyTorch3D (CUDA) trimesh
sphere_small 174.2 µs
bunny_decimated 165.5 µs 400.2 µs 68.07 ms
bunny 187.7 µs 439.9 µs 462.83 ms
dragon 520.8 µs 1.67 ms 5.832 s
happy_buddha 581.1 µs 2.24 ms 7.455 s
lucy 20.77 ms 110.21 ms 191.449 s

mass_matrix

0.1x1x10x100x1000xordito (CUDA): 66.2 µs, 1x ordito's timeordito (CUDA)1x · 66.2 µsPyTorch3D (CUDA): 359.5 µs, 5.4x ordito's timePyTorch3D (CUDA)5.4x · 359.5 µslibigl: 9.14 ms, 138x ordito's timelibigl138x · 9.14 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 66.2 µs 1x
PyTorch3D (CUDA) 359.5 µs 5.4x
libigl 9.14 ms 138x
All inputs
Input ordito (CUDA) libigl PyTorch3D (CUDA)
sphere_med 66.2 µs 9.14 ms 359.5 µs
fan_hub 94.8 µs 8.97 ms 427.1 µs

cotmatrix_entries

0.1x1x10x100x1000x10000xordito (CUDA): 23.3 µs, 1x ordito's timeordito (CUDA)1x · 23.3 µslibigl: 30.43 ms, 1306x ordito's timelibigl1306x · 30.43 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 23.3 µs 1x
libigl 30.43 ms 1306x
All inputs
Input ordito (CUDA) libigl
sphere_small 22.7 µs
bunny_decimated 22.5 µs 4.00 ms
bunny 18.4 µs 4.82 ms
dragon 23.3 µs 30.43 ms
happy_buddha 29.7 µs 38.26 ms
lucy 579.3 µs 1.387 s

cotmatrix_entries_intrinsic

0.1x1x10x100x1000xordito (CUDA): 22.0 µs, 1x ordito's timeordito (CUDA)1x · 22.0 µslibigl: 21.94 ms, 999x ordito's timelibigl999x · 21.94 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 22.0 µs 1x
libigl 21.94 ms 999x
All inputs
Input ordito (CUDA) libigl
sphere_small 24.3 µs
bunny_decimated 20.5 µs 2.81 ms
bunny 17.3 µs 3.59 ms
dragon 22.0 µs 21.94 ms
happy_buddha 27.4 µs 39.38 ms
lucy 464.0 µs 1.600 s

mass_matrix_entries

0.1x1x10x100x1000xordito (CUDA): 42.6 µs, 1x ordito's timeordito (CUDA)1x · 42.6 µspotpourri3d: 6.04 ms, 142x ordito's timepotpourri3d142x · 6.04 mslibigl: 9.15 ms, 215x ordito's timelibigl215x · 9.15 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 42.6 µs 1x
potpourri3d 6.04 ms 142x
libigl 9.15 ms 215x
All inputs
Input ordito (CUDA) libigl potpourri3d
sphere_med 42.6 µs 9.15 ms 6.04 ms
fan_hub 27.7 µs 8.91 ms 5.97 ms

robust_laplacian

0.1x1x10x100xordito (CUDA): 1.97 ms, 1x ordito's timeordito (CUDA)1x · 1.97 mslibigl: 173.68 ms, 88x ordito's timelibigl88x · 173.68 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 1.97 ms 1x
libigl 173.68 ms 88x
All inputs
Input ordito (CUDA) libigl
sphere_small 431.9 µs
bunny_decimated 545.6 µs 5.86 ms
bunny 552.4 µs 15.76 ms
dragon 1.97 ms 173.68 ms
happy_buddha 2.56 ms 214.62 ms
lucy 78.36 ms 9.144 s

face_gradients

0.1x1x10x100x1000x10000xordito (CUDA): 120.2 µs, 1x ordito's timeordito (CUDA)1x · 120.2 µslibigl: 177.86 ms, 1480x ordito's timelibigl1480x · 177.86 msPyVista: 371.29 ms, 3089x ordito's timePyVista3089x · 371.29 ms
dragon (871 414 faces) · precomputed=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 120.2 µs 1x
libigl 177.86 ms 1480x
PyVista 371.29 ms 3089x
All inputs
Input ordito (CUDA) libigl PyVista
sphere_small precomputed=False 23.5 µs
sphere_small precomputed=True 21.7 µs
bunny_decimated precomputed=False 22.9 µs 2.56 ms 7.04 ms
bunny_decimated precomputed=True 25.7 µs
bunny precomputed=False 30.2 µs 12.27 ms 29.32 ms
bunny precomputed=True 30.8 µs
dragon precomputed=False 120.2 µs 177.86 ms 371.29 ms
dragon precomputed=True 120.7 µs
happy_buddha precomputed=False 147.5 µs 222.62 ms 453.09 ms
happy_buddha precomputed=True 143.7 µs
lucy precomputed=False 2.92 ms 10.969 s 11.856 s
lucy precomputed=True 2.92 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:

Function Input ordito (CUDA)
connection_laplacian sphere_large 1.13 ms
mesh_operator_pattern lucy 24.58 ms
cotmatrix_entries_and_pattern lucy 24.97 ms
laplacian_entries lucy 3.51 ms
face_weighted_laplacian lucy 32.69 ms
graph_laplacian lucy 30.44 ms
mollify_intrinsic lucy 2.28 ms