Skip to content

grouping

Benchmarks of ordito.grouping 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)1xtrimesh: 90x ordito's time, geometric mean over 4 functions; slower than ordito in 4trimesh90x (4)libigl: 170x ordito's time, geometric mean over 1 functions; slower than ordito in 1libigl170x (1)
Time relative to ordito (CUDA), geometric mean over the grouping 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
trimesh 90x 4 4
libigl 170x 1 1

group

0.1x1x10x100x1000x10000xordito (CUDA): 270.6 µs, 1x ordito's timeordito (CUDA)1x · 270.6 µstrimesh: 432.95 ms, 1600x ordito's timetrimesh1600x · 432.95 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 270.6 µs 1x
trimesh 432.95 ms 1600x
All inputs
Input ordito (CUDA) trimesh
sphere_small 110.1 µs
bunny_decimated 115.2 µs 6.82 ms
bunny 115.3 µs 28.09 ms
dragon 270.6 µs 432.95 ms
happy_buddha 339.5 µs 535.51 ms
lucy 10.52 ms 14.953 s

group_int_rows

0.1x1x10x100x1000xordito (CUDA): 566.5 µs, 1x ordito's timeordito (CUDA)1x · 566.5 µstrimesh: 94.52 ms, 167x ordito's timetrimesh167x · 94.52 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 566.5 µs 1x
trimesh 94.52 ms 167x
All inputs
Input ordito (CUDA) trimesh
sphere_small 132.0 µs
bunny_decimated 146.8 µs 1.02 ms
bunny 149.4 µs 4.99 ms
dragon 566.5 µs 94.52 ms
happy_buddha 630.1 µs 123.74 ms
lucy 18.87 ms 4.600 s

unique_faces

0.1x1x10x100x1000xordito (CUDA): 289.9 µs, 1x ordito's timeordito (CUDA)1x · 289.9 µstrimesh: 59.57 ms, 205x ordito's timetrimesh205x · 59.57 mslibigl: 93.37 ms, 322x ordito's timelibigl322x · 93.37 ms
dragon (871 414 faces) · duplicate_fraction=0.0 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 289.9 µs 1x
trimesh 59.57 ms 205x
libigl 93.37 ms 322x
All inputs
Input ordito (CUDA) libigl trimesh
sphere_small duplicate_fraction=0.0 173.0 µs
sphere_small duplicate_fraction=0.5 228.0 µs
bunny_decimated duplicate_fraction=0.0 188.2 µs 4.58 ms 1.14 ms
bunny_decimated duplicate_fraction=0.5 180.7 µs 5.69 ms 1.91 ms
bunny duplicate_fraction=0.0 192.7 µs 11.54 ms 5.40 ms
bunny duplicate_fraction=0.5 190.8 µs 17.28 ms 8.27 ms
dragon duplicate_fraction=0.0 289.9 µs 93.37 ms 59.57 ms
dragon duplicate_fraction=0.5 392.5 µs 143.99 ms 98.15 ms
happy_buddha duplicate_fraction=0.0 349.2 µs 114.51 ms 75.03 ms
happy_buddha duplicate_fraction=0.5 461.4 µs 185.11 ms 122.75 ms
lucy duplicate_fraction=0.0 8.05 ms 4.336 s 9.769 s
lucy duplicate_fraction=0.5 11.58 ms 6.845 s 14.872 s

unique_rows

0.1x1x10x100xordito (CUDA): 197.7 µs, 1x ordito's timeordito (CUDA)1x · 197.7 µstrimesh: 2.89 ms, 15x ordito's timetrimesh15x · 2.89 ms
sphere_med (81 920 faces) · unique_fraction=1.0 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 197.7 µs 1x
trimesh 2.89 ms 15x
All inputs
Input ordito (CUDA) trimesh
sphere_med unique_fraction=1.0 197.7 µs 2.89 ms
sphere_med unique_fraction=0.1 200.8 µs 2.88 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)
unique_1d lucy dtype=float32 36.72 ms
hashed_occurrence_counts lucy 26.68 ms
first_occurrence_indices lucy 808.5 µs
hash_rows lucy 644.9 µs
hash_vector_rows lucy epsilon=0.0001 472.1 µs
hash_indices_rows lucy 643.4 µs
sorted_undirected_edge_keys lucy 11.32 ms