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.
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
rim_long (131 072 faces) · time relative to ordito, log scaleValues
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
rim_long (131 072 faces) · time relative to ordito, log scaleValues
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
rim_long (131 072 faces) · time relative to ordito, log scaleValues
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
rim_long (131 072 faces) · tolerance_fraction=0.001 · time relative to ordito, log scaleValues
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
saddle (34 848 faces) · n_queries=4096 · time relative to ordito, log scaleValues
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
sphere_small (5 120 faces) · n_vertices=64 · time relative to ordito, log scaleValues
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
ring_size=64 · time relative to ordito, log scaleValues
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
rim_long (131 072 faces) · time relative to ordito, log scaleValues
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
rim_long (131 072 faces) · time relative to ordito, log scaleValues
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
ring_size=64 · time relative to ordito, log scaleValues
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
ring_size=64 · time relative to ordito, log scaleValues
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: