Skip to content

voxels

Benchmarks of ordito.voxels 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.1x1x10x100xPyTorch3D (CUDA): 0.78x ordito's time, geometric mean over 2 functions; slower than ordito in 1PyTorch3D (CUDA)0.78x (2)ordito (CUDA): the reference, 1xordito (CUDA)1xMeshLib: 4.3x ordito's time, geometric mean over 4 functions; slower than ordito in 2MeshLib4.3x (4)SciPy: 5.3x ordito's time, geometric mean over 1 functions; slower than ordito in 1SciPy5.3x (1)PyVista: 21x ordito's time, geometric mean over 7 functions; slower than ordito in 7PyVista21x (7)libigl: 24x ordito's time, geometric mean over 2 functions; slower than ordito in 2libigl24x (2)trimesh: 24x ordito's time, geometric mean over 6 functions; slower than ordito in 6trimesh24x (6)Open3D: 65x ordito's time, geometric mean over 4 functions; slower than ordito in 4Open3D65x (4)
Time relative to ordito (CUDA), geometric mean over the voxels 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
PyTorch3D (CUDA) 0.78x 2 1
MeshLib 4.3x 4 2
SciPy 5.3x 1 1
PyVista 21x 7 7
libigl 24x 2 2
trimesh 24x 6 6
Open3D 65x 4 4

splat_onto_grid

0.01x0.1x1xPyTorch3D (CUDA): 110.6 µs, 0.95x ordito's timePyTorch3D (CUDA)0.95x · 110.6 µsordito (CUDA): 116.9 µs, 1x ordito's timeordito (CUDA)1x · 116.9 µs
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
PyTorch3D (CUDA) 110.6 µs 0.95x
ordito (CUDA) 116.9 µs 1x
All inputs
Input ordito (CUDA) PyTorch3D (CUDA)
sphere_small 51.9 µs 119.9 µs
sphere_med 58.7 µs 108.4 µs
sphere_large 116.9 µs 110.6 µs

sample_grid_trilinear

0.01x0.1x1xPyTorch3D (CUDA): 16.3 µs, 0.43x ordito's timePyTorch3D (CUDA)0.43x · 16.3 µsordito (CUDA): 37.7 µs, 1x ordito's timeordito (CUDA)1x · 37.7 µs
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
PyTorch3D (CUDA) 16.3 µs 0.43x
ordito (CUDA) 37.7 µs 1x
All inputs
Input ordito (CUDA) PyTorch3D (CUDA)
sphere_small 41.8 µs 13.1 µs
sphere_med 36.7 µs 15.4 µs
sphere_large 37.7 µs 16.3 µs

voxelize_mesh

0.1x1x10x100x1000x10000xordito (CUDA): 419.3 µs, 1x ordito's timeordito (CUDA)1x · 419.3 µsMeshLib: 106.97 ms, 255x ordito's timeMeshLib255x · 106.97 msOpen3D: 156.97 ms, 374x ordito's timeOpen3D374x · 156.97 msPyVista: 264.49 ms, 631x ordito's timePyVista631x · 264.49 mstrimesh: 656.12 ms, 1565x ordito's timetrimesh1565x · 656.12 ms
dragon (871 414 faces) · divisor=64 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 419.3 µs 1x
MeshLib 106.97 ms 255x
Open3D 156.97 ms 374x
PyVista 264.49 ms 631x
trimesh 656.12 ms 1565x
All inputs
Input ordito (CUDA) MeshLib Open3D PyVista trimesh
sphere_small divisor=64 310.8 µs
sphere_small divisor=256 385.1 µs
bunny_decimated divisor=64 328.5 µs 17.06 ms 7.56 ms 10.52 ms 57.38 ms
bunny_decimated divisor=256 409.2 µs 63.47 ms 36.59 ms 24.87 ms 1.256 s
bunny divisor=64 325.2 µs 23.60 ms 14.51 ms 27.80 ms 77.39 ms
bunny divisor=256 388.1 µs 93.49 ms 54.34 ms 51.65 ms 1.675 s
dragon divisor=64 419.3 µs 106.97 ms 156.97 ms 264.49 ms 656.12 ms
dragon divisor=256 525.8 µs 188.97 ms 239.11 ms 339.64 ms 2.851 s
happy_buddha divisor=64 412.8 µs 128.19 ms 192.74 ms 329.43 ms 819.70 ms
happy_buddha divisor=256 539.7 µs 210.25 ms 292.19 ms 419.80 ms 3.216 s
lucy divisor=64 2.67 ms 2.458 s 4.045 s 9.194 s 25.915 s
lucy divisor=256 2.95 ms 2.727 s 4.494 s 10.973 s 52.425 s

voxelize_points

0.1x1x10x100xordito (CUDA): 390.0 µs, 1x ordito's timeordito (CUDA)1x · 390.0 µsOpen3D: 7.50 ms, 19x ordito's timeOpen3D19x · 7.50 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 390.0 µs 1x
Open3D 7.50 ms 19x
All inputs
Input ordito (CUDA) Open3D
sphere_small 347.2 µs
bunny_decimated 305.3 µs 1.01 ms
bunny 300.4 µs 2.00 ms
dragon 390.0 µs 7.50 ms
happy_buddha 380.5 µs 9.13 ms
lucy 741.2 µs 222.84 ms

voxel_down_sample

0.1x1x10x100xordito (CUDA): 210.8 µs, 1x ordito's timeordito (CUDA)1x · 210.8 µsMeshLib: 5.91 ms, 28x ordito's timeMeshLib28x · 5.91 msOpen3D: 6.64 ms, 31x ordito's timeOpen3D31x · 6.64 ms
dragon (871 414 faces) · divisor=64 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 210.8 µs 1x
MeshLib 5.91 ms 28x
Open3D 6.64 ms 31x
All inputs
Input ordito (CUDA) MeshLib Open3D
sphere_small divisor=64 209.9 µs
sphere_small divisor=256 269.6 µs
bunny_decimated divisor=64 209.9 µs 280.0 µs 490.0 µs
bunny_decimated divisor=256 209.9 µs 15.28 ms 749.1 µs
bunny divisor=64 240.0 µs 837.6 µs 1.03 ms
bunny divisor=256 199.6 µs 15.87 ms 4.63 ms
dragon divisor=64 210.8 µs 5.91 ms 6.64 ms
dragon divisor=256 220.6 µs 12.95 ms 18.37 ms
happy_buddha divisor=64 223.3 µs 7.06 ms 8.11 ms
happy_buddha divisor=256 239.6 µs 13.28 ms 20.54 ms
lucy divisor=64 1.50 ms 111.71 ms 230.74 ms
lucy divisor=256 1.46 ms 135.41 ms 242.34 ms

occupancy_at_points

0.1x1x10x100xordito (CUDA): 24.2 µs, 1x ordito's timeordito (CUDA)1x · 24.2 µsOpen3D: 339.9 µs, 14x ordito's timeOpen3D14x · 339.9 µs
dragon (871 414 faces) · n_queries=10000 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 24.2 µs 1x
Open3D 339.9 µs 14x
All inputs
Input ordito (CUDA) Open3D
sphere_small n_queries=10000 27.4 µs
sphere_small n_queries=1000000 31.4 µs
bunny_decimated n_queries=10000 27.6 µs 324.8 µs
bunny_decimated n_queries=1000000 29.2 µs 34.39 ms
bunny n_queries=10000 22.9 µs 368.6 µs
bunny n_queries=1000000 28.4 µs 39.30 ms
dragon n_queries=10000 24.2 µs 339.9 µs
dragon n_queries=1000000 30.5 µs 38.41 ms
happy_buddha n_queries=10000 27.2 µs 340.4 µs
happy_buddha n_queries=1000000 31.0 µs 40.59 ms
lucy n_queries=10000 24.7 µs 399.4 µs
lucy n_queries=1000000 33.2 µs 40.80 ms

dilate

0.01x0.1x1x10xMeshLib: 72.7 µs, 0.22x ordito's timeMeshLib0.22x · 72.7 µsordito (CUDA): 330.5 µs, 1x ordito's timeordito (CUDA)1x · 330.5 µstrimesh: 1.50 ms, 4.5x ordito's timetrimesh4.5x · 1.50 msPyVista: 1.75 ms, 5.3x ordito's timePyVista5.3x · 1.75 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 72.7 µs 0.22x
ordito (CUDA) 330.5 µs 1x
trimesh 1.50 ms 4.5x
PyVista 1.75 ms 5.3x
All inputs
Input ordito (CUDA) MeshLib PyVista trimesh
sphere_small 373.3 µs
bunny_decimated 312.1 µs 94.4 µs 2.02 ms 1.76 ms
bunny 313.8 µs 89.1 µs 1.82 ms 1.69 ms
dragon 330.5 µs 72.7 µs 1.75 ms 1.50 ms
happy_buddha 320.4 µs 62.0 µs 1.63 ms 1.22 ms
lucy 319.6 µs 135.5 µs 1.79 ms 1.03 ms

closing

0.1x1x10xordito (CUDA): 459.1 µs, 1x ordito's timeordito (CUDA)1x · 459.1 µstrimesh: 2.25 ms, 4.9x ordito's timetrimesh4.9x · 2.25 msPyVista: 2.87 ms, 6.3x ordito's timePyVista6.3x · 2.87 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 459.1 µs 1x
trimesh 2.25 ms 4.9x
PyVista 2.87 ms 6.3x
All inputs
Input ordito (CUDA) PyVista trimesh
sphere_small 468.9 µs
bunny_decimated 469.2 µs 3.81 ms 2.71 ms
bunny 437.4 µs 3.38 ms 2.70 ms
dragon 459.1 µs 2.87 ms 2.25 ms
happy_buddha 453.3 µs 2.93 ms 1.87 ms
lucy 455.9 µs 3.45 ms 2.11 ms

opening

0.1x1x10xordito (CUDA): 403.7 µs, 1x ordito's timeordito (CUDA)1x · 403.7 µsSciPy: 2.28 ms, 5.6x ordito's timeSciPy5.6x · 2.28 msPyVista: 2.93 ms, 7.3x ordito's timePyVista7.3x · 2.93 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 403.7 µs 1x
SciPy 2.28 ms 5.6x
PyVista 2.93 ms 7.3x
All inputs
Input ordito (CUDA) PyVista SciPy
sphere_small 442.3 µs
bunny_decimated 407.1 µs 3.60 ms 2.60 ms
bunny 385.5 µs 3.73 ms 2.57 ms
dragon 403.7 µs 2.93 ms 2.28 ms
happy_buddha 404.3 µs 2.96 ms 1.82 ms
lucy 414.2 µs 3.40 ms 1.67 ms

fill_cavities

0.1x1x10xordito (CUDA): 357.0 µs, 1x ordito's timeordito (CUDA)1x · 357.0 µstrimesh: 3.51 ms, 9.8x ordito's timetrimesh9.8x · 3.51 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 357.0 µs 1x
trimesh 3.51 ms 9.8x
All inputs
Input ordito (CUDA) trimesh
sphere_small 467.3 µs
bunny_decimated 397.2 µs 4.49 ms
bunny 387.8 µs 4.62 ms
dragon 357.0 µs 3.51 ms
happy_buddha 368.1 µs 2.67 ms
lucy 397.0 µs 2.73 ms

fill_orthographic

0.1x1x10x100xordito (CUDA): 356.1 µs, 1x ordito's timeordito (CUDA)1x · 356.1 µstrimesh: 3.69 ms, 10x ordito's timetrimesh10x · 3.69 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 356.1 µs 1x
trimesh 3.69 ms 10x
All inputs
Input ordito (CUDA) trimesh
sphere_small 410.6 µs
bunny_decimated 368.8 µs 4.13 ms
bunny 363.9 µs 4.17 ms
dragon 356.1 µs 3.69 ms
happy_buddha 382.7 µs 2.72 ms
lucy 373.6 µs 2.34 ms

to_boxes

0.1x1x10x100xordito (CUDA): 423.0 µs, 1x ordito's timeordito (CUDA)1x · 423.0 µsPyVista: 15.05 ms, 36x ordito's timePyVista36x · 15.05 mstrimesh: 21.65 ms, 51x ordito's timetrimesh51x · 21.65 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 423.0 µs 1x
PyVista 15.05 ms 36x
trimesh 21.65 ms 51x
All inputs
Input ordito (CUDA) PyVista trimesh
sphere_small 433.1 µs
bunny_decimated 435.1 µs 12.70 ms 19.67 ms
bunny 403.8 µs 12.69 ms 20.05 ms
dragon 423.0 µs 15.05 ms 21.65 ms
happy_buddha 434.3 µs 14.57 ms 22.96 ms
lucy 440.5 µs 10.13 ms 15.10 ms

voxel_corners

0.1x1x10x100xordito (CUDA): 355.0 µs, 1x ordito's timeordito (CUDA)1x · 355.0 µslibigl: 4.36 ms, 12x ordito's timelibigl12x · 4.36 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 355.0 µs 1x
libigl 4.36 ms 12x
All inputs
Input ordito (CUDA) libigl
sphere_small 372.3 µs
bunny_decimated 337.9 µs 3.62 ms
bunny 350.7 µs 3.72 ms
dragon 355.0 µs 4.36 ms
happy_buddha 351.4 µs 4.30 ms
lucy 369.4 µs 2.79 ms

grid_points

0.1x1x10x100x1000xordito (CUDA): 28.0 µs, 1x ordito's timeordito (CUDA)1x · 28.0 µslibigl: 1.51 ms, 54x ordito's timelibigl54x · 1.51 msPyVista: 2.92 ms, 104x ordito's timePyVista104x · 2.92 ms
resolution=64 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 28.0 µs 1x
libigl 1.51 ms 54x
PyVista 2.92 ms 104x
All inputs
Input ordito (CUDA) libigl PyVista
resolution=64 28.0 µs 1.51 ms 2.92 ms
resolution=256 169.2 µs

erode

0.01x0.1x1x10xMeshLib: 55.1 µs, 0.16x ordito's timeMeshLib0.16x · 55.1 µsordito (CUDA): 336.6 µs, 1x ordito's timeordito (CUDA)1x · 336.6 µsPyVista: 1.62 ms, 4.8x ordito's timePyVista4.8x · 1.62 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 55.1 µs 0.16x
ordito (CUDA) 336.6 µs 1x
PyVista 1.62 ms 4.8x
All inputs
Input ordito (CUDA) MeshLib PyVista
sphere_small 328.6 µs
bunny_decimated 319.5 µs 60.7 µs 1.79 ms
bunny 315.9 µs 53.7 µs 1.73 ms
dragon 336.6 µs 55.1 µs 1.62 ms
happy_buddha 334.4 µs 45.9 µs 1.64 ms
lucy 332.7 µs 41.0 µs 1.81 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)
pool_by_voxel lucy 503.2 µs
cells lucy order=sorted 136.7 µs
from_cells lucy 230.0 µs
grid_transform sphere_small 30.6 µs
resolve_voxel_grid lucy 292.3 µs
cell_indices lucy 245.9 µs
cell_centers lucy 42.1 µs
space_filling_codes lucy curve=morton 241.1 µs
cells_from_space_filling_codes lucy curve=morton 226.3 µs
occupancy_at_cells lucy 24.2 µs
union lucy 307.2 µs
intersection lucy 331.0 µs
difference lucy 355.0 µs
revoxelize lucy 376.5 µs
surface_voxels lucy 325.8 µs
to_dense lucy 55.9 µs
from_dense lucy 283.5 µs
to_field lucy 59.5 µs