Skip to content

ray

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.

Measured on GPU: NVIDIA GeForce RTX 5090 · CPU: Intel Xeon w7-2495X

Summary

0.1x1x10x100x1000xordito (CUDA): the reference, 1xordito (CUDA)1xMeshLib: 1.9x ordito's time, geometric mean over 3 functions; slower than ordito in 3MeshLib1.9x (3)Open3D: 2.6x ordito's time, geometric mean over 5 functions; slower than ordito in 4Open3D2.6x (5)trimesh: 25x ordito's time, geometric mean over 4 functions; slower than ordito in 4trimesh25x (4)PyVista: 204x ordito's time, geometric mean over 1 functions; slower than ordito in 1PyVista204x (1)manifold3d: 341x ordito's time, geometric mean over 1 functions; slower than ordito in 1manifold3d341x (1)
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

0.1x1x10x100xordito (CUDA): 151.3 µs, 1x ordito's timeordito (CUDA)1x · 151.3 µsMeshLib: 191.3 µs, 1.3x ordito's timeMeshLib1.3x · 191.3 µsOpen3D: 347.9 µs, 2.3x ordito's timeOpen3D2.3x · 347.9 µstrimesh: 2.00 ms, 13x ordito's timetrimesh13x · 2.00 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
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

0.1x1x10x100xordito (CUDA): 132.8 µs, 1x ordito's timeordito (CUDA)1x · 132.8 µsMeshLib: 215.4 µs, 1.6x ordito's timeMeshLib1.6x · 215.4 µsOpen3D: 538.2 µs, 4.1x ordito's timeOpen3D4.1x · 538.2 µstrimesh: 1.61 ms, 12x ordito's timetrimesh12x · 1.61 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
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

0.1x1x10x100xordito (CUDA): 168.8 µs, 1x ordito's timeordito (CUDA)1x · 168.8 µsMeshLib: 304.0 µs, 1.8x ordito's timeMeshLib1.8x · 304.0 µsOpen3D: 580.4 µs, 3.4x ordito's timeOpen3D3.4x · 580.4 µstrimesh: 2.43 ms, 14x ordito's timetrimesh14x · 2.43 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
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

0.1x1x10x100xordito (CUDA): 143.8 µs, 1x ordito's timeordito (CUDA)1x · 143.8 µstrimesh: 11.71 ms, 81x ordito's timetrimesh81x · 11.71 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
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

0.1x1x10x100x1000xordito (CUDA): 581.4 µs, 1x ordito's timeordito (CUDA)1x · 581.4 µsOpen3D: 625.8 µs, 1.1x ordito's timeOpen3D1.1x · 625.8 µsPyVista: 382.82 ms, 658x ordito's timePyVista658x · 382.82 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
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

0.1x1x10xordito (CUDA): 151.0 µs, 1x ordito's timeordito (CUDA)1x · 151.0 µsOpen3D: 368.8 µs, 2.4x ordito's timeOpen3D2.4x · 368.8 µs
sphere_med (81 920 faces) · both_ways=False · time relative to ordito, log scale
Values
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

0.1x1x10x100x1000x10000xordito (CUDA): 2.47 ms, 1x ordito's timeordito (CUDA)1x · 2.47 msmanifold3d: 2.850 s, 1156x ordito's timemanifold3d1156x · 2.850 s
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 2.47 ms 1x
manifold3d 2.850 s 1156x
All inputs
Input ordito (CUDA) manifold3d
sphere_small 1.17 ms 75.30 ms
sphere_med 1.42 ms 758.07 ms
sphere_large 2.47 ms 2.850 s