Skip to content

mesh

Benchmarks of ordito.mesh 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.1x1x10x100xordito (CUDA): the reference, 1xordito (CUDA)1xtrimesh: 26x ordito's time, geometric mean over 14 functions; slower than ordito in 14trimesh26x (14)
Time relative to ordito (CUDA), geometric mean over the mesh 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
trimesh 26x 14 14

mesh_vertex_normals

0.1x1x10x100x1000x10000xordito (CUDA): 128.6 µs, 1x ordito's timeordito (CUDA)1x · 128.6 µstrimesh: 417.21 ms, 3243x ordito's timetrimesh3243x · 417.21 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 128.6 µs 1x
trimesh 417.21 ms 3243x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 47.3 µs
sphere_small warm=True 4.4 µs
bunny_decimated warm=False 44.2 µs 4.25 ms
bunny_decimated warm=True 2.8 µs 2.5 µs
bunny warm=False 48.9 µs 20.30 ms
bunny warm=True 2.9 µs 2.5 µs
dragon warm=False 128.6 µs 417.21 ms
dragon warm=True 3.9 µs 3.9 µs
happy_buddha warm=False 173.6 µs 531.99 ms
happy_buddha warm=True 4.0 µs 4.0 µs
lucy warm=False 4.38 ms 12.482 s
lucy warm=True 2.5 µs 2.1 µs

mesh_face_adjacency

0.1x1x10x100x1000xordito (CUDA): 479.8 µs, 1x ordito's timeordito (CUDA)1x · 479.8 µstrimesh: 264.89 ms, 552x ordito's timetrimesh552x · 264.89 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 479.8 µs 1x
trimesh 264.89 ms 552x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 131.4 µs
sphere_small warm=True 3.6 µs
bunny_decimated warm=False 131.4 µs 3.90 ms
bunny_decimated warm=True 2.2 µs 2.4 µs
bunny warm=False 166.1 µs 16.22 ms
bunny warm=True 3.2 µs 2.3 µs
dragon warm=False 479.8 µs 264.89 ms
dragon warm=True 2.1 µs 2.2 µs
happy_buddha warm=False 642.7 µs 337.35 ms
happy_buddha warm=True 4.2 µs 2.2 µs
lucy warm=False 19.27 ms 10.796 s
lucy warm=True 2.8 µs 2.2 µs

mesh_boundary_loops

0.1x1x10x100x1000xordito (CUDA): 383.7 µs, 1x ordito's timeordito (CUDA)1x · 383.7 µstrimesh: 299.39 ms, 780x ordito's timetrimesh780x · 299.39 ms
rim_long (131 072 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 383.7 µs 1x
trimesh 299.39 ms 780x
All inputs
Input ordito (CUDA) trimesh
holes_many warm=False 486.5 µs 142.04 ms
holes_many warm=True 2.7 µs 133.03 ms
sphere_med warm=False 146.8 µs 13.16 ms
sphere_med warm=True 2.1 µs 4.75 ms
rim_long warm=False 383.7 µs 299.39 ms
rim_long warm=True 3.0 µs 283.75 ms

mesh_is_watertight

0.1x1x10x100x1000xordito (CUDA): 334.7 µs, 1x ordito's timeordito (CUDA)1x · 334.7 µstrimesh: 224.64 ms, 671x ordito's timetrimesh671x · 224.64 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 334.7 µs 1x
trimesh 224.64 ms 671x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 548.4 µs
sphere_small warm=True 3.7 µs
bunny_decimated warm=False 161.8 µs 4.09 ms
bunny_decimated warm=True 2.4 µs 3.8 µs
bunny warm=False 210.2 µs 14.03 ms
bunny warm=True 2.6 µs 3.3 µs
dragon warm=False 334.7 µs 224.64 ms
dragon warm=True 4.1 µs 3.4 µs
happy_buddha warm=False 6.17 ms 297.18 ms
happy_buddha warm=True 2.5 µs 3.2 µs
lucy warm=False 11.96 ms 9.473 s
lucy warm=True 2.6 µs 4.0 µs

mesh_triangles_center

0.1x1x10x100x1000x10000xordito (CUDA): 34.5 µs, 1x ordito's timeordito (CUDA)1x · 34.5 µstrimesh: 104.53 ms, 3029x ordito's timetrimesh3029x · 104.53 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 34.5 µs 1x
trimesh 104.53 ms 3029x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 32.7 µs
sphere_small warm=True 2.5 µs
bunny_decimated warm=False 22.3 µs 1.74 ms
bunny_decimated warm=True 3.2 µs 2.3 µs
bunny warm=False 22.3 µs 8.46 ms
bunny warm=True 3.6 µs 2.1 µs
dragon warm=False 34.5 µs 104.53 ms
dragon warm=True 2.7 µs 2.2 µs
happy_buddha warm=False 40.5 µs 130.46 ms
happy_buddha warm=True 4.1 µs 2.3 µs
lucy warm=False 562.6 µs 3.597 s
lucy warm=True 3.5 µs 2.1 µs

mesh_centroid

0.1x1x10x100x1000x10000xordito (CUDA): 64.7 µs, 1x ordito's timeordito (CUDA)1x · 64.7 µstrimesh: 173.11 ms, 2674x ordito's timetrimesh2674x · 173.11 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 64.7 µs 1x
trimesh 173.11 ms 2674x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 62.0 µs
sphere_small warm=True 6.0 µs
bunny_decimated warm=False 50.6 µs 2.80 ms
bunny_decimated warm=True 2.6 µs 2.3 µs
bunny warm=False 58.9 µs 13.44 ms
bunny warm=True 3.1 µs 2.3 µs
dragon warm=False 64.7 µs 173.11 ms
dragon warm=True 3.5 µs 2.2 µs
happy_buddha warm=False 73.4 µs 215.96 ms
happy_buddha warm=True 3.0 µs 2.3 µs
lucy warm=False 368.6 µs 6.471 s
lucy warm=True 2.1 µs 2.1 µs

mesh_center_mass

0.1x1x10x100x1000x10000xordito (CUDA): 176.0 µs, 1x ordito's timeordito (CUDA)1x · 176.0 µstrimesh: 549.56 ms, 3122x ordito's timetrimesh3122x · 549.56 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 176.0 µs 1x
trimesh 549.56 ms 3122x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 104.0 µs
sphere_small warm=True 3.1 µs
bunny_decimated warm=False 96.7 µs 7.18 ms
bunny_decimated warm=True 3.6 µs 2.4 µs
bunny warm=False 102.2 µs 31.41 ms
bunny warm=True 3.6 µs 2.3 µs
dragon warm=False 176.0 µs 549.56 ms
dragon warm=True 3.3 µs 2.6 µs
happy_buddha warm=False 213.3 µs 713.42 ms
happy_buddha warm=True 3.3 µs 2.2 µs
lucy warm=False 2.45 ms 20.397 s
lucy warm=True 2.3 µs 2.2 µs

mesh_moment_inertia

0.1x1x10x100x1000x10000xordito (CUDA): 143.2 µs, 1x ordito's timeordito (CUDA)1x · 143.2 µstrimesh: 553.31 ms, 3863x ordito's timetrimesh3863x · 553.31 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 143.2 µs 1x
trimesh 553.31 ms 3863x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 113.4 µs
sphere_small warm=True 3.9 µs
bunny_decimated warm=False 91.1 µs 7.37 ms
bunny_decimated warm=True 2.5 µs 2.3 µs
bunny warm=False 106.1 µs 31.54 ms
bunny warm=True 3.4 µs 2.2 µs
dragon warm=False 143.2 µs 553.31 ms
dragon warm=True 3.6 µs 2.5 µs
happy_buddha warm=False 184.5 µs 712.77 ms
happy_buddha warm=True 3.7 µs 1.9 µs
lucy warm=False 2.45 ms 20.321 s
lucy warm=True 3.2 µs 2.2 µs

mesh_extents

0.1x1x10x100x1000xordito (CUDA): 93.6 µs, 1x ordito's timeordito (CUDA)1x · 93.6 µstrimesh: 56.81 ms, 607x ordito's timetrimesh607x · 56.81 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 93.6 µs 1x
trimesh 56.81 ms 607x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 83.0 µs
sphere_small warm=True 4.2 µs
bunny_decimated warm=False 67.5 µs 1.07 ms
bunny_decimated warm=True 2.3 µs 3.2 µs
bunny warm=False 98.7 µs 4.56 ms
bunny warm=True 3.7 µs 2.2 µs
dragon warm=False 93.6 µs 56.81 ms
dragon warm=True 3.3 µs 2.3 µs
happy_buddha warm=False 80.8 µs 69.56 ms
happy_buddha warm=True 4.2 µs 2.0 µs
lucy warm=False 303.4 µs 2.409 s
lucy warm=True 3.1 µs 2.1 µs

mesh_edges_sorted

0.1x1x10x100x1000x10000xordito (CUDA): 38.3 µs, 1x ordito's timeordito (CUDA)1x · 38.3 µstrimesh: 104.15 ms, 2717x ordito's timetrimesh2717x · 104.15 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 38.3 µs 1x
trimesh 104.15 ms 2717x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 29.3 µs
sphere_small warm=True 2.6 µs
bunny_decimated warm=False 20.9 µs 1.65 ms
bunny_decimated warm=True 2.2 µs 2.8 µs
bunny warm=False 35.4 µs 8.28 ms
bunny warm=True 3.1 µs 2.2 µs
dragon warm=False 38.3 µs 104.15 ms
dragon warm=True 3.4 µs 2.2 µs
happy_buddha warm=False 57.3 µs 136.91 ms
happy_buddha warm=True 4.6 µs 2.2 µs
lucy warm=False 711.6 µs 3.773 s
lucy warm=True 3.5 µs 2.3 µs

mesh_faces_unique_edges

0.1x1x10x100x1000xordito (CUDA): 364.2 µs, 1x ordito's timeordito (CUDA)1x · 364.2 µstrimesh: 262.34 ms, 720x ordito's timetrimesh720x · 262.34 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 364.2 µs 1x
trimesh 262.34 ms 720x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 178.1 µs
sphere_small warm=True 2.5 µs
bunny_decimated warm=False 140.2 µs 4.45 ms
bunny_decimated warm=True 3.3 µs 2.0 µs
bunny warm=False 196.4 µs 21.85 ms
bunny warm=True 3.4 µs 2.2 µs
dragon warm=False 364.2 µs 262.34 ms
dragon warm=True 3.0 µs 2.1 µs
happy_buddha warm=False 418.3 µs 322.12 ms
happy_buddha warm=True 4.3 µs 2.1 µs
lucy warm=False 12.59 ms 10.628 s
lucy warm=True 2.0 µs 2.2 µs

mesh_is_winding_consistent

0.1x1x10x100x1000x10000xordito (CUDA): 190.9 µs, 1x ordito's timeordito (CUDA)1x · 190.9 µstrimesh: 232.65 ms, 1219x ordito's timetrimesh1219x · 232.65 ms
dragon (871 414 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 190.9 µs 1x
trimesh 232.65 ms 1219x
All inputs
Input ordito (CUDA) trimesh
sphere_small warm=False 162.2 µs
sphere_small warm=True 4.1 µs
bunny_decimated warm=False 108.8 µs 3.18 ms
bunny_decimated warm=True 3.4 µs 2.0 µs
bunny warm=False 116.7 µs 13.73 ms
bunny warm=True 3.6 µs 2.0 µs
dragon warm=False 190.9 µs 232.65 ms
dragon warm=True 2.6 µs 2.0 µs
happy_buddha warm=False 222.7 µs 303.71 ms
happy_buddha warm=True 5.6 µs 2.2 µs
lucy warm=False 4.38 ms 9.497 s
lucy warm=True 3.2 µs 2.3 µs

mesh_contains

0.1x1x10x100xordito (CUDA): 580.2 µs, 1x ordito's timeordito (CUDA)1x · 580.2 µstrimesh: 6.65 ms, 11x ordito's timetrimesh11x · 6.65 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 580.2 µs 1x
trimesh 6.65 ms 11x
All inputs
Input ordito (CUDA) trimesh
shells_8 1.65 ms 14.45 ms
sphere_med 580.2 µs 6.65 ms

mesh_body_count

0.1x1x10x100xordito (CUDA): 151.9 µs, 1x ordito's timeordito (CUDA)1x · 151.9 µstrimesh: 10.09 ms, 66x ordito's timetrimesh66x · 10.09 ms
sphere_med (81 920 faces) · warm=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 151.9 µs 1x
trimesh 10.09 ms 66x
All inputs
Input ordito (CUDA) trimesh
sphere_med warm=False 151.9 µs 10.09 ms
sphere_med warm=True 4.9 µs 2.2 µs
parts_64 warm=False 137.0 µs 7.66 ms
parts_64 warm=True 2.9 µs 2.6 µs
parts_1024 warm=False 125.3 µs 9.88 ms
parts_1024 warm=True 2.4 µs 2.3 µ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)
mesh_warp_mesh lucy warm=True 2.1 µs
mesh_vector_heat_operators sphere_large warm=True 4.1 µs
mesh_invalidation lucy mode=with_faces 19.64 ms
mesh_carry_directions lucy mode=rotate_device 994.0 µs
mesh_from_warp_mesh sphere_small 5.5 µs
mesh_traced_mesh lucy warm=True 2.5 µs
mesh_mesh_for_rays lucy n_rays=1099511627776 3.822 s
mesh_halfedge_mates lucy warm=True 3.0 µs
mesh_oriented_boundary_edges lucy warm=True 3.9 µs
mesh_boundary_vertex_indices lucy warm=True 3.1 µs
mesh_is_orientable lucy warm=True 1.9 µs
mesh_is_self_intersecting lucy warm=True 2.6 µs
mesh_mesh_operator_pattern lucy warm=True 2.0 µs
mesh_laplacian_operator lucy warm=True 1.9 µs
mesh_heat_solver sphere_small warm=True 7.2 µs
mesh_fixed_vertex_solver sphere_small warm=True 5.1 µs
mesh_moved_tree lucy refit=True 5.62 ms
mesh_attributes lucy mode=with_edit 2.34 ms