Skip to content

interpolation

Benchmarks of ordito.interpolation 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.1x1x10x100x1000xordito (CUDA): the reference, 1xordito (CUDA)1xPyTorch3D (CUDA): 1.6x ordito's time, geometric mean over 1 functions; slower than ordito in 1PyTorch3D (CUDA)1.6x (1)libigl: 13x ordito's time, geometric mean over 3 functions; slower than ordito in 3libigl13x (3)MeshLab: 59x ordito's time, geometric mean over 3 functions; slower than ordito in 3MeshLab59x (3)PyVista: 115x ordito's time, geometric mean over 4 functions; slower than ordito in 4PyVista115x (4)trimesh: 922x ordito's time, geometric mean over 1 functions; slower than ordito in 1trimesh922x (1)
Time relative to ordito (CUDA), geometric mean over the interpolation 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.6x 1 1
libigl 13x 3 3
MeshLab 59x 3 3
PyVista 115x 4 4
trimesh 922x 1 1

average_onto_faces

0.1x1x10x100xordito (CUDA): 20.4 µs, 1x ordito's timeordito (CUDA)1x · 20.4 µslibigl: 251.5 µs, 12x ordito's timelibigl12x · 251.5 µsMeshLab: 473.0 µs, 23x ordito's timeMeshLab23x · 473.0 µsPyVista: 1.49 ms, 73x ordito's timePyVista73x · 1.49 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 20.4 µs 1x
libigl 251.5 µs 12x
MeshLab 473.0 µs 23x
PyVista 1.49 ms 73x
All inputs
Input ordito (CUDA) libigl MeshLab PyVista
sphere_med 20.4 µs 251.5 µs 473.0 µs 1.49 ms
fan_hub 14.3 µs 275.2 µs 468.9 µs 1.46 ms

average_onto_vertices

0.1x1x10x100xordito (CUDA): 36.2 µs, 1x ordito's timeordito (CUDA)1x · 36.2 µslibigl: 246.3 µs, 6.8x ordito's timelibigl6.8x · 246.3 µsMeshLab: 692.4 µs, 19x ordito's timeMeshLab19x · 692.4 µsPyVista: 3.34 ms, 92x ordito's timePyVista92x · 3.34 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 36.2 µs 1x
libigl 246.3 µs 6.8x
MeshLab 692.4 µs 19x
PyVista 3.34 ms 92x
All inputs
Input ordito (CUDA) libigl MeshLab PyVista
sphere_med 36.2 µs 246.3 µs 692.4 µs 3.34 ms
fan_hub 33.2 µs 243.8 µs 680.7 µs 3.19 ms

average_from_edges_onto_vertices

0.1x1x10x100xordito (CUDA): 47.3 µs, 1x ordito's timeordito (CUDA)1x · 47.3 µslibigl: 1.32 ms, 28x ordito's timelibigl28x · 1.32 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 47.3 µs 1x
libigl 1.32 ms 28x
All inputs
Input ordito (CUDA) libigl
sphere_med 47.3 µs 1.32 ms
fan_hub 48.0 µs 724.2 µs

transfer_onto_vertices

0.1x1x10x100x1000xordito (CUDA): 1.73 ms, 1x ordito's timeordito (CUDA)1x · 1.73 msPyVista: 170.68 ms, 99x ordito's timePyVista99x · 170.68 msMeshLab: 1.308 s, 758x ordito's timeMeshLab758x · 1.308 s
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 1.73 ms 1x
PyVista 170.68 ms 99x
MeshLab 1.308 s 758x
All inputs
Input ordito (CUDA) MeshLab PyVista
sphere_small 245.0 µs
bunny_decimated 281.9 µs 13.23 ms 2.57 ms
bunny 343.7 µs 62.08 ms 11.12 ms
dragon 1.73 ms 1.308 s 170.68 ms
happy_buddha 1.83 ms 1.653 s 209.14 ms
lucy 50.61 ms 66.821 s 8.804 s

interpolate_barycentric

0.1x1x10x100x1000x10000xordito (CUDA): 21.8 µs, 1x ordito's timeordito (CUDA)1x · 21.8 µsPyTorch3D (CUDA): 33.0 µs, 1.5x ordito's timePyTorch3D (CUDA)1.5x · 33.0 µstrimesh: 72.70 ms, 3341x ordito's timetrimesh3341x · 72.70 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 21.8 µs 1x
PyTorch3D (CUDA) 33.0 µs 1.5x
trimesh 72.70 ms 3341x
All inputs
Input ordito (CUDA) PyTorch3D (CUDA) trimesh
sphere_small 17.0 µs
bunny_decimated 18.1 µs 28.8 µs 1.19 ms
bunny 17.8 µs 32.0 µs 4.84 ms
dragon 21.8 µs 33.0 µs 72.70 ms
happy_buddha 23.9 µs 36.9 µs 90.61 ms
lucy 828.7 µs 1.50 ms 2.445 s

interpolate_from_points

0.1x1x10x100x1000xordito (CUDA): 531.5 µs, 1x ordito's timeordito (CUDA)1x · 531.5 µsPyVista: 304.59 ms, 573x ordito's timePyVista573x · 304.59 ms
dragon (871 414 faces) · neighborhood=8 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 531.5 µs 1x
PyVista 304.59 ms 573x
All inputs
Input ordito (CUDA) PyVista
sphere_small neighborhood=8 96.5 µs
sphere_small neighborhood=64 106.3 µs
bunny_decimated neighborhood=8 111.5 µs 5.80 ms
bunny_decimated neighborhood=64 167.7 µs 21.90 ms
bunny neighborhood=8 189.3 µs 24.12 ms
bunny neighborhood=64 608.1 µs 88.42 ms
dragon neighborhood=8 531.5 µs 304.59 ms
dragon neighborhood=64 1.18 ms 1.016 s
happy_buddha neighborhood=8 651.6 µs 391.79 ms
happy_buddha neighborhood=64 1.26 ms 1.305 s
lucy neighborhood=8 12.69 ms 12.857 s
lucy neighborhood=64 22.91 ms 36.792 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)
transfer_through_operator lucy 96.37 ms
transfer_through_index lucy 380.5 µs
index_operators lucy direction=representatives 770.8 µs
compose_operators lucy 21.57 ms
provenance_vertex_values lucy 1.67 ms
provenance_face_values lucy 684.5 µs
provenance_then lucy 24.30 ms
provenance_constructors lucy constructor=from_clusters 1.00 ms