Skip to content

polyline

Benchmarks of ordito.polyline 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.01x0.1x1x10x100xmanifold3d: 0.41x ordito's time, geometric mean over 2 functions; slower than ordito in 0manifold3d0.41x (2)ordito (CUDA): the reference, 1xordito (CUDA)1xtrimesh: 2.7x ordito's time, geometric mean over 2 functions; slower than ordito in 1trimesh2.7x (2)libigl: 3.5x ordito's time, geometric mean over 1 functions; slower than ordito in 1libigl3.5x (1)MeshLib: 4x ordito's time, geometric mean over 6 functions; slower than ordito in 4MeshLib4x (6)PyVista: 16x ordito's time, geometric mean over 5 functions; slower than ordito in 5PyVista16x (5)
Time relative to ordito (CUDA), geometric mean over the polyline 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
manifold3d 0.41x 2 0
trimesh 2.7x 2 1
libigl 3.5x 1 1
MeshLib 4x 6 4
PyVista 16x 5 5

polyline_length

0.1x1x10x100xordito (CUDA): 39.2 µs, 1x ordito's timeordito (CUDA)1x · 39.2 µsMeshLib: 57.9 µs, 1.5x ordito's timeMeshLib1.5x · 57.9 µsPyVista: 710.1 µs, 18x ordito's timePyVista18x · 710.1 µs
rim_long (131 072 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 39.2 µs 1x
MeshLib 57.9 µs 1.5x
PyVista 710.1 µs 18x
All inputs
Input ordito (CUDA) MeshLib PyVista
saddle_small 31.6 µs 0.8 µs 158.4 µs
saddle 36.5 µs 1.6 µs 124.9 µs
rim_long 39.2 µs 57.9 µs 710.1 µs

polyline_upsample

0.1x1x10x100x1000xordito (CUDA): 62.2 µs, 1x ordito's timeordito (CUDA)1x · 62.2 µsMeshLib: 17.76 ms, 286x ordito's timeMeshLib286x · 17.76 ms
rim_long (131 072 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 62.2 µs 1x
MeshLib 17.76 ms 286x
All inputs
Input ordito (CUDA) MeshLib
saddle_small 48.4 µs 55.5 µs
saddle 44.0 µs 76.4 µs
rim_long 62.2 µs 17.76 ms

polyline_downsample

0.1x1x10x100x1000xordito (CUDA): 122.4 µs, 1x ordito's timeordito (CUDA)1x · 122.4 µsMeshLib: 23.59 ms, 193x ordito's timeMeshLib193x · 23.59 ms
rim_long (131 072 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 122.4 µs 1x
MeshLib 23.59 ms 193x
All inputs
Input ordito (CUDA) MeshLib
saddle_small 84.5 µs 102.1 µs
saddle 108.1 µs 229.3 µs
rim_long 122.4 µs 23.59 ms

polyline_simplify

0.1x1x10x100xordito (CUDA): 282.3 µs, 1x ordito's timeordito (CUDA)1x · 282.3 µsPyVista: 15.64 ms, 55x ordito's timePyVista55x · 15.64 mslibigl: 20.54 ms, 73x ordito's timelibigl73x · 20.54 msMeshLib: 27.99 ms, 99x ordito's timeMeshLib99x · 27.99 ms
rim_long (131 072 faces) · tolerance_fraction=0.001 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 282.3 µs 1x
PyVista 15.64 ms 55x
libigl 20.54 ms 73x
MeshLib 27.99 ms 99x
All inputs
Input ordito (CUDA) libigl MeshLib PyVista
saddle_small tolerance_fraction=0.001 91.4 µs 78.1 µs 145.6 µs 210.1 µs
saddle_small tolerance_fraction=0.1 105.1 µs 55.8 µs 159.0 µs 143.5 µs
saddle tolerance_fraction=0.001 129.4 µs 195.7 µs 267.7 µs 220.5 µs
saddle tolerance_fraction=0.1 106.2 µs 75.1 µs 311.9 µs 196.8 µs
rim_long tolerance_fraction=0.001 282.3 µs 20.54 ms 27.99 ms 15.64 ms
rim_long tolerance_fraction=0.1 228.3 µs 12.29 ms 27.65 ms 15.33 ms

polyline_point_distance

0.1x1x10x100x1000xordito (CUDA): 40.3 µs, 1x ordito's timeordito (CUDA)1x · 40.3 µsMeshLib: 3.45 ms, 86x ordito's timeMeshLib86x · 3.45 msPyVista: 38.33 ms, 951x ordito's timePyVista951x · 38.33 ms
saddle (34 848 faces) · n_queries=4096 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 40.3 µs 1x
MeshLib 3.45 ms 86x
PyVista 38.33 ms 951x
All inputs
Input ordito (CUDA) MeshLib PyVista
saddle_small n_queries=4096 33.0 µs 3.21 ms 21.64 ms
saddle_small n_queries=65536 54.6 µs 49.05 ms 358.39 ms
saddle n_queries=4096 40.3 µs 3.45 ms 38.33 ms
saddle n_queries=65536 85.7 µs 53.76 ms 623.22 ms
rim_long n_queries=4096 454.1 µs 20.35 ms
rim_long n_queries=65536 6.64 ms 322.15 ms

polyline_triangulate

0.01x0.1x1xMeshLib: 22.9 µs, 0.12x ordito's timeMeshLib0.12x · 22.9 µsPyVista: 144.4 µs, 0.77x ordito's timePyVista0.77x · 144.4 µsordito (CUDA): 187.4 µs, 1x ordito's timeordito (CUDA)1x · 187.4 µs
sphere_small (5 120 faces) · n_vertices=64 · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 22.9 µs 0.12x
PyVista 144.4 µs 0.77x
ordito (CUDA) 187.4 µs 1x
All inputs
Input ordito (CUDA) MeshLib PyVista
sphere_small n_vertices=64 187.4 µs 22.9 µs 144.4 µs
sphere_small n_vertices=1024 865.9 µs 1.59 ms 6.07 ms

triangulate_polygon

0.01x0.1x1xtrimesh: 71.5 µs, 0.36x ordito's timetrimesh0.36x · 71.5 µsordito (CUDA): 201.3 µs, 1x ordito's timeordito (CUDA)1x · 201.3 µs
ring_size=64 · time relative to ordito, log scale
Values
Library Median Relative to ordito
trimesh 71.5 µs 0.36x
ordito (CUDA) 201.3 µs 1x
All inputs
Input ordito (CUDA) trimesh
ring_size=64 201.3 µs 71.5 µs
ring_size=1024 856.6 µs 1.70 ms

cumulative_arc_length

0.1x1x10x100xordito (CUDA): 59.7 µs, 1x ordito's timeordito (CUDA)1x · 59.7 µsPyVista: 686.5 µs, 12x ordito's timePyVista12x · 686.5 µs
rim_long (131 072 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 59.7 µs 1x
PyVista 686.5 µs 12x
All inputs
Input ordito (CUDA) PyVista
saddle_small 28.7 µs 101.5 µs
saddle 31.3 µs 107.3 µs
rim_long 59.7 µs 686.5 µs

polyline_resample

0.1x1x10x100x1000xordito (CUDA): 51.1 µs, 1x ordito's timeordito (CUDA)1x · 51.1 µstrimesh: 5.14 ms, 100x ordito's timetrimesh100x · 5.14 ms
rim_long (131 072 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 51.1 µs 1x
trimesh 5.14 ms 100x
All inputs
Input ordito (CUDA) trimesh
saddle_small 28.4 µs 59.4 µs
saddle 31.5 µs 109.7 µs
rim_long 51.1 µs 5.14 ms

triangulate_polygons

0.01x0.1x1xmanifold3d: 98.3 µs, 0.24x ordito's timemanifold3d0.24x · 98.3 µsordito (CUDA): 403.3 µs, 1x ordito's timeordito (CUDA)1x · 403.3 µs
ring_size=64 · time relative to ordito, log scale
Values
Library Median Relative to ordito
manifold3d 98.3 µs 0.24x
ordito (CUDA) 403.3 µs 1x
All inputs
Input ordito (CUDA) manifold3d
ring_size=64 403.3 µs 98.3 µs
ring_size=1024 1.89 ms 1.13 ms

triangulate_polygons_from_offsets

0.01x0.1x1xmanifold3d: 114.5 µs, 0.37x ordito's timemanifold3d0.37x · 114.5 µsordito (CUDA): 310.6 µs, 1x ordito's timeordito (CUDA)1x · 310.6 µs
ring_size=64 · time relative to ordito, log scale
Values
Library Median Relative to ordito
manifold3d 114.5 µs 0.37x
ordito (CUDA) 310.6 µs 1x
All inputs
Input ordito (CUDA) manifold3d
ring_size=64 310.6 µs 114.5 µs
ring_size=1024 1.99 ms 1.10 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)
is_closed saddle_small 32.2 µs
polyline_open saddle_small 47.4 µs
polyline_close rim_long 36.8 µs
polyline_centroid rim_long 70.8 µs
polyline_normal rim_long 63.5 µs
polyline_radius rim_long 94.7 µs
polyline_angles rim_long 25.4 µs
polyline_smooth_upsample rim_long 62.9 µs
polyline_upsample_closed rim_long 63.6 µs
polyline_downsample_closed rim_long 137.9 µs
polyline_resample_closed rim_long 82.5 µs
polyline_point_distance_closed rim_long 470.2 µs
triangulate_polygon_long_rings ring_size=65536 shape=noisy_circle 2.20 ms
polyline_triangulate_from_offsets n_loops=4096 2.06 ms
polyline_upsample_count rim_long 29.5 µs
polyline_resample_closed_catmull_rom rim_long 89.1 µs