Skip to content

adjacency

Benchmarks of ordito.adjacency 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: 33x ordito's time, geometric mean over 1 functions; slower than ordito in 1MeshLib33x (1)libigl: 111x ordito's time, geometric mean over 4 functions; slower than ordito in 4libigl111x (4)PyVista: 368x ordito's time, geometric mean over 1 functions; slower than ordito in 1PyVista368x (1)trimesh: 704x ordito's time, geometric mean over 6 functions; slower than ordito in 6trimesh704x (6)Open3D: 1085x ordito's time, geometric mean over 1 functions; slower than ordito in 1Open3D1085x (1)
Time relative to ordito (CUDA), geometric mean over the adjacency 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 33x 1 1
libigl 111x 4 4
PyVista 368x 1 1
trimesh 704x 6 6
Open3D 1085x 1 1

face_adjacency

0.1x1x10x100x1000xordito (CUDA): 490.7 µs, 1x ordito's timeordito (CUDA)1x · 490.7 µslibigl: 29.96 ms, 61x ordito's timelibigl61x · 29.96 mstrimesh: 276.89 ms, 564x ordito's timetrimesh564x · 276.89 ms
dragon (871 414 faces) · known_radix=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 490.7 µs 1x
libigl 29.96 ms 61x
trimesh 276.89 ms 564x
All inputs
Input ordito (CUDA) libigl trimesh
sphere_small known_radix=False 153.1 µs
sphere_small known_radix=True 171.5 µs
bunny_decimated known_radix=False 156.0 µs 3.02 ms 3.89 ms
bunny_decimated known_radix=True 131.2 µs
bunny known_radix=False 167.0 µs 4.27 ms 16.60 ms
bunny known_radix=True 158.0 µs
dragon known_radix=False 490.7 µs 29.96 ms 276.89 ms
dragon known_radix=True 446.9 µs
happy_buddha known_radix=False 697.4 µs 41.69 ms 349.48 ms
happy_buddha known_radix=True 591.7 µs
lucy known_radix=False 20.65 ms 1.705 s 11.016 s
lucy known_radix=True 17.99 ms

face_adjacency_unshared

0.1x1x10x100x1000x10000x100000xordito (CUDA): 27.1 µs, 1x ordito's timeordito (CUDA)1x · 27.1 µslibigl: 29.86 ms, 1103x ordito's timelibigl1103x · 29.86 mstrimesh: 411.70 ms, 15206x ordito's timetrimesh15206x · 411.70 ms
dragon (871 414 faces) · tabled=True · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 27.1 µs 1x
libigl 29.86 ms 1103x
trimesh 411.70 ms 15206x
All inputs
Input ordito (CUDA) libigl trimesh
sphere_small tabled=True 21.0 µs
sphere_small tabled=False 147.1 µs
bunny_decimated tabled=True 31.6 µs 2.92 ms 5.81 ms
bunny_decimated tabled=False 150.7 µs
bunny tabled=True 18.6 µs 4.30 ms 27.04 ms
bunny tabled=False 159.7 µs
dragon tabled=True 27.1 µs 29.86 ms 411.70 ms
dragon tabled=False 480.7 µs
happy_buddha tabled=True 36.2 µs 34.60 ms 521.43 ms
happy_buddha tabled=False 493.2 µs
lucy tabled=True 873.2 µs 1.717 s 15.569 s
lucy tabled=False 17.93 ms

face_connected_component_labels

0.1x1x10x100x1000x10000xordito (CUDA): 239.2 µs, 1x ordito's timeordito (CUDA)1x · 239.2 µsMeshLib: 21.42 ms, 90x ordito's timeMeshLib90x · 21.42 msPyVista: 269.72 ms, 1128x ordito's timePyVista1128x · 269.72 mslibigl: 405.56 ms, 1696x ordito's timelibigl1696x · 405.56 msOpen3D: 942.26 ms, 3940x ordito's timeOpen3D3940x · 942.26 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 239.2 µs 1x
MeshLib 21.42 ms 90x
PyVista 269.72 ms 1128x
libigl 405.56 ms 1696x
Open3D 942.26 ms 3940x
All inputs
Input ordito (CUDA) libigl MeshLib Open3D PyVista
sphere_small 123.4 µs
bunny_decimated 111.5 µs 8.84 ms 530.2 µs 9.12 ms 4.52 ms
bunny 143.8 µs 36.11 ms 2.05 ms 40.15 ms 18.28 ms
dragon 239.2 µs 405.56 ms 21.42 ms 942.26 ms 269.72 ms
happy_buddha 289.8 µs 516.00 ms 26.50 ms 1.362 s 335.27 ms
lucy 10.13 ms 17.037 s 695.69 ms 35.993 s 10.204 s

face_adjacency_angles

0.1x1x10x100x1000x10000x100000xordito (CUDA): 31.3 µs, 1x ordito's timeordito (CUDA)1x · 31.3 µstrimesh: 523.79 ms, 16741x ordito's timetrimesh16741x · 523.79 ms
dragon (871 414 faces) · given=adjacency · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 31.3 µs 1x
trimesh 523.79 ms 16741x
All inputs
Input ordito (CUDA) trimesh
sphere_small given=adjacency 20.8 µs
sphere_small given=normals 111.1 µs
bunny_decimated given=adjacency 30.0 µs 6.24 ms
bunny_decimated given=normals 108.7 µs
bunny given=adjacency 18.1 µs 25.73 ms
bunny given=normals 147.0 µs
dragon given=adjacency 31.3 µs 523.79 ms
dragon given=normals 422.6 µs
happy_buddha given=adjacency 41.9 µs 648.76 ms
happy_buddha given=normals 575.4 µs
lucy given=adjacency 679.0 µs 17.326 s
lucy given=normals 17.82 ms

vertex_face_adjacency

0.1x1x10x100x1000xordito (CUDA): 60.7 µs, 1x ordito's timeordito (CUDA)1x · 60.7 µslibigl: 768.1 µs, 13x ordito's timelibigl13x · 768.1 µstrimesh: 8.16 ms, 134x ordito's timetrimesh134x · 8.16 ms
sphere_med (81 920 faces) · known_nv=True · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 60.7 µs 1x
libigl 768.1 µs 13x
trimesh 8.16 ms 134x
All inputs
Input ordito (CUDA) libigl trimesh
sphere_med known_nv=True 60.7 µs 768.1 µs 8.16 ms
fan_hub known_nv=True 84.5 µs 736.7 µs
sphere_med known_nv=False 76.7 µs
fan_hub known_nv=False 117.7 µs

face_adjacency_projections

0.1x1x10x100x1000x10000xordito (CUDA): 612.6 µs, 1x ordito's timeordito (CUDA)1x · 612.6 µstrimesh: 671.71 ms, 1097x ordito's timetrimesh1097x · 671.71 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 612.6 µs 1x
trimesh 671.71 ms 1097x
All inputs
Input ordito (CUDA) trimesh
sphere_small 117.3 µs
bunny_decimated 149.4 µs 8.01 ms
bunny 150.8 µs 40.52 ms
dragon 612.6 µs 671.71 ms
happy_buddha 669.2 µs 836.39 ms
lucy 18.01 ms 22.565 s

face_adjacency_convex

0.1x1x10x100x1000x10000xordito (CUDA): 543.1 µs, 1x ordito's timeordito (CUDA)1x · 543.1 µstrimesh: 657.05 ms, 1210x ordito's timetrimesh1210x · 657.05 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 543.1 µs 1x
trimesh 657.05 ms 1210x
All inputs
Input ordito (CUDA) trimesh
sphere_small 108.5 µs
bunny_decimated 110.4 µs 8.15 ms
bunny 150.6 µs 36.31 ms
dragon 543.1 µs 657.05 ms
happy_buddha 659.4 µs 797.77 ms
lucy 17.82 ms 22.438 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)
vertex_face_adjacency_from_counts fan_hub 83.8 µs
sorted_face_edge_keys lucy bounded=True 9.65 ms