Benchmarks of ordito.ray 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 ray 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
1.9x
3
3
Open3D
2.6x
5
4
trimesh
25x
4
4
PyVista
204x
1
1
manifold3d
341x
1
1
intersects_first
sphere_med (81 920 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
151.3 µs
1x
MeshLib
191.3 µs
1.3x
Open3D
347.9 µs
2.3x
trimesh
2.00 ms
13x
All inputs
Input
ordito (CUDA)
MeshLib
Open3D
trimesh
shells_8
118.5 µs
172.0 µs
546.7 µs
1.59 ms
sphere_med
151.3 µs
191.3 µs
347.9 µs
2.00 ms
intersects_any
sphere_med (81 920 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
132.8 µs
1x
MeshLib
215.4 µs
1.6x
Open3D
538.2 µs
4.1x
trimesh
1.61 ms
12x
All inputs
Input
ordito (CUDA)
MeshLib
Open3D
trimesh
shells_8
106.8 µs
581.3 µs
483.2 µs
1.58 ms
sphere_med
132.8 µs
215.4 µs
538.2 µs
1.61 ms
intersects_location
sphere_med (81 920 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
168.8 µs
1x
MeshLib
304.0 µs
1.8x
Open3D
580.4 µs
3.4x
trimesh
2.43 ms
14x
All inputs
Input
ordito (CUDA)
MeshLib
Open3D
trimesh
shells_8
137.3 µs
204.1 µs
601.1 µs
2.35 ms
sphere_med
168.8 µs
304.0 µs
580.4 µs
2.43 ms
longest_ray
sphere_med (81 920 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
143.8 µs
1x
trimesh
11.71 ms
81x
All inputs
Input
ordito (CUDA)
trimesh
shells_8
123.2 µs
29.98 ms
sphere_med
143.8 µs
11.71 ms
contains_points
sphere_med (81 920 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
581.4 µs
1x
Open3D
625.8 µs
1.1x
PyVista
382.82 ms
658x
All inputs
Input
ordito (CUDA)
Open3D
PyVista
shells_8
1.65 ms
1.13 ms
104.50 ms
sphere_med
581.4 µs
625.8 µs
382.82 ms
first_hits
sphere_med (81 920 faces) · both_ways=False · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
151.0 µs
1x
Open3D
368.8 µs
2.4x
All inputs
Input
ordito (CUDA)
Open3D
shells_8 both_ways=False
117.1 µs
355.3 µs
shells_8 both_ways=True
125.6 µs
sphere_med both_ways=False
151.0 µs
368.8 µs
sphere_med both_ways=True
148.4 µs
segment_hits
sphere_large (327 680 faces) · time relative to ordito, log scaleValues