Skip to content

reduce

Benchmarks of ordito.reduce 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)1xPyTorch3D (CUDA): 1.2x ordito's time, geometric mean over 1 functions; slower than ordito in 1PyTorch3D (CUDA)1.2x (1)NumPy: 8.1x ordito's time, geometric mean over 22 functions; slower than ordito in 19NumPy8.1x (22)MeshLab: 72x ordito's time, geometric mean over 1 functions; slower than ordito in 1MeshLab72x (1)PyVista: 673x ordito's time, geometric mean over 1 functions; slower than ordito in 1PyVista673x (1)
Time relative to ordito (CUDA), geometric mean over the reduce 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) 1.2x 1 1
NumPy 8.1x 22 19
MeshLab 72x 1 1
PyVista 673x 1 1

weighted_sum

0.1x1x10x100x1000x10000xordito (CUDA): 31.8 µs, 1x ordito's timeordito (CUDA)1x · 31.8 µsPyTorch3D (CUDA): 35.3 µs, 1.1x ordito's timePyTorch3D (CUDA)1.1x · 35.3 µsNumPy: 426.4 µs, 13x ordito's timeNumPy13x · 426.4 µsPyVista: 49.40 ms, 1552x ordito's timePyVista1552x · 49.40 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 31.8 µs 1x
PyTorch3D (CUDA) 35.3 µs 1.1x
NumPy 426.4 µs 13x
PyVista 49.40 ms 1552x
All inputs
Input ordito (CUDA) NumPy PyTorch3D (CUDA) PyVista
sphere_small 51.4 µs
bunny_decimated 36.2 µs 9.7 µs 34.9 µs 1.11 ms
bunny 30.6 µs 45.8 µs 37.5 µs 4.28 ms
dragon 31.8 µs 426.4 µs 35.3 µs 49.40 ms
happy_buddha 31.6 µs 582.7 µs 35.3 µs 62.37 ms
lucy 165.8 µs 39.87 ms 328.1 µs 1.732 s

sum_bool

0.1x1x10xordito (CUDA): 27.2 µs, 1x ordito's timeordito (CUDA)1x · 27.2 µsNumPy: 195.5 µs, 7.2x ordito's timeNumPy7.2x · 195.5 µs
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 27.2 µs 1x
NumPy 195.5 µs 7.2x
All inputs
Input ordito (CUDA) NumPy
sphere_small 40.4 µs
bunny_decimated 37.5 µs 5.1 µs
bunny 28.2 µs 13.4 µs
dragon 27.2 µs 195.5 µs
happy_buddha 33.6 µs 161.1 µs
lucy 44.4 µs 3.57 ms

any_bool

0.001x0.01x0.1x1xNumPy: 3.4 µs, 0.08x ordito's timeNumPy0.08x · 3.4 µsordito (CUDA): 40.2 µs, 1x ordito's timeordito (CUDA)1x · 40.2 µs
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
NumPy 3.4 µs 0.08x
ordito (CUDA) 40.2 µs 1x
All inputs
Input ordito (CUDA) NumPy
sphere_small 46.3 µs
bunny_decimated 42.9 µs 1.7 µs
bunny 34.7 µs 1.3 µs
dragon 40.2 µs 3.4 µs
happy_buddha 28.3 µs 4.6 µs
lucy 59.1 µs 0.9 µs

all_bool

0.001x0.01x0.1x1xNumPy: 1.5 µs, 0.04x ordito's timeNumPy0.04x · 1.5 µsordito (CUDA): 35.8 µs, 1x ordito's timeordito (CUDA)1x · 35.8 µs
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
NumPy 1.5 µs 0.04x
ordito (CUDA) 35.8 µs 1x
All inputs
Input ordito (CUDA) NumPy
sphere_small 39.9 µs
bunny_decimated 31.8 µs 1.8 µs
bunny 43.7 µs 1.1 µs
dragon 35.8 µs 1.5 µs
happy_buddha 49.6 µs 0.9 µs
lucy 64.0 µs 25.5 µs

sum_scalar

0.1x1x10xordito (CUDA): 36.2 µs, 1x ordito's timeordito (CUDA)1x · 36.2 µsNumPy: 124.8 µs, 3.4x ordito's timeNumPy3.4x · 124.8 µs
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 36.2 µs 1x
NumPy 124.8 µs 3.4x
All inputs
Input ordito (CUDA) NumPy
sphere_small 52.3 µs
bunny_decimated 52.7 µs 3.6 µs
bunny 44.9 µs 9.6 µs
dragon 36.2 µs 124.8 µs
happy_buddha 51.0 µs 107.9 µs
lucy 58.3 µs 5.39 ms

sum_vec3

0.1x1x10x100x1000xordito (CUDA): 31.6 µs, 1x ordito's timeordito (CUDA)1x · 31.6 µsNumPy: 4.41 ms, 140x ordito's timeNumPy140x · 4.41 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 31.6 µs 1x
NumPy 4.41 ms 140x
All inputs
Input ordito (CUDA) NumPy
sphere_small 32.9 µs
bunny_decimated 57.4 µs 128.3 µs
bunny 42.2 µs 467.5 µs
dragon 31.6 µs 4.41 ms
happy_buddha 34.4 µs 5.39 ms
lucy 148.2 µs 138.49 ms

mean_vec3

0.1x1x10x100xordito (CUDA): 70.1 µs, 1x ordito's timeordito (CUDA)1x · 70.1 µsNumPy: 4.44 ms, 63x ordito's timeNumPy63x · 4.44 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 70.1 µs 1x
NumPy 4.44 ms 63x
All inputs
Input ordito (CUDA) NumPy
sphere_small 74.4 µs
bunny_decimated 65.9 µs 85.8 µs
bunny 63.7 µs 369.3 µs
dragon 70.1 µs 4.44 ms
happy_buddha 76.9 µs 5.43 ms
lucy 158.4 µs 137.69 ms

scatter_sum

0.1x1x10x100x1000xordito (CUDA): 67.3 µs, 1x ordito's timeordito (CUDA)1x · 67.3 µsNumPy: 7.97 ms, 118x ordito's timeNumPy118x · 7.97 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 67.3 µs 1x
NumPy 7.97 ms 118x
All inputs
Input ordito (CUDA) NumPy
sphere_small 95.3 µs
bunny_decimated 56.3 µs 82.6 µs
bunny 54.2 µs 355.3 µs
dragon 67.3 µs 7.97 ms
happy_buddha 77.8 µs 14.47 ms
lucy 1.04 ms 496.81 ms

segment_sum

0.1x1x10x100xordito (CUDA): 61.6 µs, 1x ordito's timeordito (CUDA)1x · 61.6 µsNumPy: 5.44 ms, 88x ordito's timeNumPy88x · 5.44 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 61.6 µs 1x
NumPy 5.44 ms 88x
All inputs
Input ordito (CUDA) NumPy
sphere_small 51.0 µs
bunny_decimated 45.8 µs 123.0 µs
bunny 44.8 µs 304.7 µs
dragon 61.6 µs 5.44 ms
happy_buddha 75.4 µs 6.73 ms
lucy 1.72 ms 170.94 ms

scatter_mean

0.1x1x10x100xordito (CUDA): 158.0 µs, 1x ordito's timeordito (CUDA)1x · 158.0 µsNumPy: 11.80 ms, 75x ordito's timeNumPy75x · 11.80 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 158.0 µs 1x
NumPy 11.80 ms 75x
All inputs
Input ordito (CUDA) NumPy
sphere_small 101.9 µs
bunny_decimated 108.9 µs 122.7 µs
bunny 166.5 µs 654.1 µs
dragon 158.0 µs 11.80 ms
happy_buddha 106.3 µs 21.72 ms
lucy 1.63 ms 869.25 ms

segment_mean

0.1x1x10x100xordito (CUDA): 104.8 µs, 1x ordito's timeordito (CUDA)1x · 104.8 µsNumPy: 5.86 ms, 56x ordito's timeNumPy56x · 5.86 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 104.8 µs 1x
NumPy 5.86 ms 56x
All inputs
Input ordito (CUDA) NumPy
sphere_small 74.2 µs
bunny_decimated 77.3 µs 152.1 µs
bunny 116.1 µs 489.4 µs
dragon 104.8 µs 5.86 ms
happy_buddha 117.8 µs 7.27 ms
lucy 1.79 ms 205.99 ms

scatter_min

0.1x1x10x100xordito (CUDA): 93.7 µs, 1x ordito's timeordito (CUDA)1x · 93.7 µsNumPy: 3.72 ms, 40x ordito's timeNumPy40x · 3.72 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 93.7 µs 1x
NumPy 3.72 ms 40x
All inputs
Input ordito (CUDA) NumPy
sphere_small 71.6 µs
bunny_decimated 57.1 µs 103.4 µs
bunny 81.5 µs 291.9 µs
dragon 93.7 µs 3.72 ms
happy_buddha 113.9 µs 4.70 ms
lucy 1.53 ms 202.78 ms

scatter_max

0.1x1x10x100xordito (CUDA): 113.3 µs, 1x ordito's timeordito (CUDA)1x · 113.3 µsNumPy: 3.67 ms, 32x ordito's timeNumPy32x · 3.67 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 113.3 µs 1x
NumPy 3.67 ms 32x
All inputs
Input ordito (CUDA) NumPy
sphere_small 75.5 µs
bunny_decimated 54.6 µs 95.9 µs
bunny 91.1 µs 292.8 µs
dragon 113.3 µs 3.67 ms
happy_buddha 89.9 µs 4.64 ms
lucy 1.53 ms 202.96 ms

segment_min

0.1x1x10x100x1000xordito (CUDA): 89.8 µs, 1x ordito's timeordito (CUDA)1x · 89.8 µsNumPy: 15.79 ms, 176x ordito's timeNumPy176x · 15.79 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 89.8 µs 1x
NumPy 15.79 ms 176x
All inputs
Input ordito (CUDA) NumPy
sphere_small 40.4 µs
bunny_decimated 54.7 µs 302.3 µs
bunny 48.9 µs 829.6 µs
dragon 89.8 µs 15.79 ms
happy_buddha 98.7 µs 19.78 ms
lucy 2.21 ms 427.30 ms

segment_max

0.1x1x10x100x1000xordito (CUDA): 71.9 µs, 1x ordito's timeordito (CUDA)1x · 71.9 µsNumPy: 15.68 ms, 218x ordito's timeNumPy218x · 15.68 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 71.9 µs 1x
NumPy 15.68 ms 218x
All inputs
Input ordito (CUDA) NumPy
sphere_small 36.8 µs
bunny_decimated 35.2 µs 294.1 µs
bunny 47.8 µs 814.8 µs
dragon 71.9 µs 15.68 ms
happy_buddha 98.1 µs 19.28 ms
lucy 2.22 ms 424.71 ms

minmax_scalar

0.1x1x10xordito (CUDA): 36.6 µs, 1x ordito's timeordito (CUDA)1x · 36.6 µsNumPy: 76.0 µs, 2.1x ordito's timeNumPy2.1x · 76.0 µs
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 36.6 µs 1x
NumPy 76.0 µs 2.1x
All inputs
Input ordito (CUDA) NumPy
sphere_small 55.2 µs
bunny_decimated 49.5 µs 4.8 µs
bunny 47.8 µs 9.4 µs
dragon 36.6 µs 76.0 µs
happy_buddha 53.0 µs 121.6 µs
lucy 65.6 µs 3.64 ms

min_scalar

0.01x0.1x1xNumPy: 44.1 µs, 0.95x ordito's timeNumPy0.95x · 44.1 µsordito (CUDA): 46.6 µs, 1x ordito's timeordito (CUDA)1x · 46.6 µs
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
NumPy 44.1 µs 0.95x
ordito (CUDA) 46.6 µs 1x
All inputs
Input ordito (CUDA) NumPy
sphere_small 42.1 µs
bunny_decimated 51.2 µs 2.7 µs
bunny 47.2 µs 4.9 µs
dragon 46.6 µs 44.1 µs
happy_buddha 60.6 µs 53.3 µs
lucy 65.7 µs 2.01 ms

minmax_global_2d

0.1x1x10xordito (CUDA): 37.9 µs, 1x ordito's timeordito (CUDA)1x · 37.9 µsNumPy: 301.5 µs, 8x ordito's timeNumPy8x · 301.5 µs
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 37.9 µs 1x
NumPy 301.5 µs 8x
All inputs
Input ordito (CUDA) NumPy
sphere_small 54.8 µs
bunny_decimated 65.5 µs 7.5 µs
bunny 60.7 µs 18.1 µs
dragon 37.9 µs 301.5 µs
happy_buddha 46.1 µs 424.6 µs
lucy 145.0 µs 18.27 ms

sum_axis0

0.1x1x10x100xordito (CUDA): 57.0 µs, 1x ordito's timeordito (CUDA)1x · 57.0 µsNumPy: 4.44 ms, 78x ordito's timeNumPy78x · 4.44 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 57.0 µs 1x
NumPy 4.44 ms 78x
All inputs
Input ordito (CUDA) NumPy
sphere_small 44.6 µs
bunny_decimated 35.6 µs 144.1 µs
bunny 31.9 µs 366.1 µs
dragon 57.0 µs 4.44 ms
happy_buddha 75.0 µs 5.43 ms
lucy 858.1 µs 138.78 ms

max_axis1

0.1x1x10x100x1000xordito (CUDA): 22.9 µs, 1x ordito's timeordito (CUDA)1x · 22.9 µsNumPy: 12.39 ms, 541x ordito's timeNumPy541x · 12.39 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 22.9 µs 1x
NumPy 12.39 ms 541x
All inputs
Input ordito (CUDA) NumPy
sphere_small 25.5 µs
bunny_decimated 16.9 µs 364.1 µs
bunny 17.9 µs 1.03 ms
dragon 22.9 µs 12.39 ms
happy_buddha 24.8 µs 15.26 ms
lucy 161.5 µs 413.09 ms

median

0.1x1x10x100x1000xordito (CUDA): 109.5 µs, 1x ordito's timeordito (CUDA)1x · 109.5 µsNumPy: 592.1 µs, 5.4x ordito's timeNumPy5.4x · 592.1 µsMeshLab: 18.32 ms, 167x ordito's timeMeshLab167x · 18.32 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 109.5 µs 1x
NumPy 592.1 µs 5.4x
MeshLab 18.32 ms 167x
All inputs
Input ordito (CUDA) MeshLab NumPy
sphere_small 84.3 µs
bunny_decimated 95.6 µs 387.6 µs 54.0 µs
bunny 80.0 µs 1.78 ms 214.2 µs
dragon 109.5 µs 18.32 ms 592.1 µs
happy_buddha 138.6 µs 23.60 ms 703.6 µs
lucy 1.47 ms 1.109 s 54.25 ms

quantile

0.1x1x10xordito (CUDA): 130.5 µs, 1x ordito's timeordito (CUDA)1x · 130.5 µsNumPy: 975.5 µs, 7.5x ordito's timeNumPy7.5x · 975.5 µs
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 130.5 µs 1x
NumPy 975.5 µs 7.5x
All inputs
Input ordito (CUDA) NumPy
sphere_small 68.8 µs
bunny_decimated 97.9 µs 138.8 µs
bunny 92.0 µs 272.0 µs
dragon 130.5 µs 975.5 µs
happy_buddha 112.2 µs 1.35 ms
lucy 1.47 ms 55.20 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)
sum_of_terms lucy 102.9 µs