Benchmarks of ordito.array 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 array 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.5x
1
1
trimesh
11x
2
2
NumPy
21x
17
16
SciPy
42x
2
2
concatenate_arrays
dragon (871 414 faces) · n_segments=4 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
34.2 µs
1x
PyTorch3D (CUDA)
244.2 µs
7.1x
NumPy
563.0 µs
16x
All inputs
Input
ordito (CUDA)
NumPy
PyTorch3D (CUDA)
sphere_small n_segments=4
31.1 µs
sphere_small n_segments=256
119.5 µs
bunny_decimated n_segments=4
48.7 µs
7.6 µs
33.1 µs
bunny_decimated n_segments=256
106.4 µs
26.6 µs
51.4 µs
bunny n_segments=4
39.4 µs
27.9 µs
59.2 µs
bunny n_segments=256
109.3 µs
76.0 µs
27.6 µs
dragon n_segments=4
34.2 µs
563.0 µs
244.2 µs
dragon n_segments=256
103.3 µs
590.2 µs
29.9 µs
happy_buddha n_segments=4
36.7 µs
699.6 µs
298.3 µs
happy_buddha n_segments=256
110.5 µs
729.4 µs
33.0 µs
lucy n_segments=4
455.2 µs
65.64 ms
15.34 ms
lucy n_segments=256
558.9 µs
63.46 ms
1.34 ms
arange
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
21.6 µs
1x
NumPy
389.5 µs
18x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
26.9 µs
bunny_decimated
22.8 µs
9.5 µs
bunny
17.7 µs
53.6 µs
dragon
21.6 µs
389.5 µs
happy_buddha
32.6 µs
519.6 µs
lucy
224.5 µs
47.00 ms
pack_1d_arrays
dragon (871 414 faces) · n_segments=4 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
67.6 µs
1x
NumPy
590.3 µs
8.7x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small n_segments=4
73.4 µs
sphere_small n_segments=256
226.1 µs
bunny_decimated n_segments=4
53.2 µs
13.5 µs
bunny_decimated n_segments=256
196.8 µs
65.4 µs
bunny n_segments=4
55.1 µs
33.2 µs
bunny n_segments=256
115.4 µs
105.2 µs
dragon n_segments=4
67.6 µs
590.3 µs
dragon n_segments=256
178.4 µs
608.6 µs
happy_buddha n_segments=4
87.0 µs
709.3 µs
happy_buddha n_segments=256
171.9 µs
744.9 µs
lucy n_segments=4
471.2 µs
65.45 ms
lucy n_segments=256
616.2 µs
63.58 ms
split_array
dragon (871 414 faces) · copy=False · n_segments=4 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
NumPy
3.6 µs
0.09x
ordito (CUDA)
39.0 µs
1x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small copy=False n_segments=4
43.5 µs
sphere_small copy=False n_segments=256
173.3 µs
sphere_small copy=True n_segments=4
126.7 µs
sphere_small copy=True n_segments=256
804.9 µs
bunny_decimated copy=False n_segments=4
40.0 µs
4.1 µs
bunny_decimated copy=False n_segments=256
94.9 µs
201.8 µs
bunny_decimated copy=True n_segments=4
118.5 µs
16.3 µs
bunny_decimated copy=True n_segments=256
811.2 µs
194.9 µs
bunny copy=False n_segments=4
36.8 µs
7.8 µs
bunny copy=False n_segments=256
153.7 µs
163.1 µs
bunny copy=True n_segments=4
115.3 µs
36.5 µs
bunny copy=True n_segments=256
740.3 µs
258.5 µs
dragon copy=False n_segments=4
39.0 µs
3.6 µs
dragon copy=False n_segments=256
95.3 µs
110.1 µs
dragon copy=True n_segments=4
128.1 µs
571.0 µs
dragon copy=True n_segments=256
755.8 µs
803.2 µs
happy_buddha copy=False n_segments=4
55.5 µs
4.1 µs
happy_buddha copy=False n_segments=256
197.5 µs
110.7 µs
happy_buddha copy=True n_segments=4
143.3 µs
712.0 µs
happy_buddha copy=True n_segments=256
777.3 µs
910.1 µs
lucy copy=False n_segments=4
62.8 µs
3.4 µs
lucy copy=False n_segments=256
127.5 µs
111.1 µs
lucy copy=True n_segments=4
554.1 µs
66.97 ms
lucy copy=True n_segments=256
1.33 ms
128.42 ms
allclose
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
33.1 µs
1x
NumPy
2.55 ms
77x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
45.1 µs
bunny_decimated
34.0 µs
60.8 µs
bunny
46.5 µs
193.4 µs
dragon
33.1 µs
2.55 ms
happy_buddha
35.6 µs
3.18 ms
lucy
238.9 µs
236.71 ms
sort_and_argsort
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
178.9 µs
1x
NumPy
222.93 ms
1246x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
83.6 µs
bunny_decimated
85.5 µs
2.74 ms
bunny
89.7 µs
12.86 ms
dragon
178.9 µs
222.93 ms
happy_buddha
211.5 µs
281.59 ms
lucy
4.61 ms
11.503 s
sort_rows
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
24.2 µs
1x
NumPy
13.65 ms
563x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
12.5 µs
bunny_decimated
16.6 µs
262.4 µs
bunny
12.9 µs
1.16 ms
dragon
24.2 µs
13.65 ms
happy_buddha
30.4 µs
16.89 ms
lucy
1.22 ms
487.68 ms
block_diag
sphere_large (327 680 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
166.8 µs
1x
SciPy
39.18 ms
235x
All inputs
Input
ordito (CUDA)
SciPy
sphere_small
85.6 µs
415.5 µs
sphere_med
99.2 µs
5.83 ms
sphere_large
166.8 µs
39.18 ms
csr_from_keys
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
350.5 µs
1x
SciPy
30.36 ms
87x
All inputs
Input
ordito (CUDA)
SciPy
sphere_small
76.8 µs
bunny_decimated
98.2 µs
645.3 µs
bunny
94.7 µs
2.43 ms
dragon
350.5 µs
30.36 ms
happy_buddha
380.6 µs
38.58 ms
lucy
11.15 ms
1.066 s
index_sparse
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
388.1 µs
1x
trimesh
19.22 ms
50x
All inputs
Input
ordito (CUDA)
trimesh
sphere_small
143.2 µs
bunny_decimated
134.9 µs
369.0 µs
bunny
129.3 µs
1.37 ms
dragon
388.1 µs
19.22 ms
happy_buddha
496.4 µs
26.00 ms
lucy
16.84 ms
989.81 ms
isin
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
95.3 µs
1x
NumPy
11.57 ms
121x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
92.3 µs
bunny_decimated
68.9 µs
161.1 µs
bunny
87.3 µs
590.6 µs
dragon
95.3 µs
11.57 ms
happy_buddha
94.3 µs
13.52 ms
lucy
670.7 µs
657.55 ms
flatnonzero
dragon (871 414 faces) · selectivity=0.5 · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
61.3 µs
1x
NumPy
1.34 ms
22x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small selectivity=0.5
54.0 µs
sphere_small selectivity=0.01
62.2 µs
bunny_decimated selectivity=0.5
43.8 µs
35.2 µs
bunny_decimated selectivity=0.01
56.4 µs
14.4 µs
bunny selectivity=0.5
62.2 µs
125.2 µs
bunny selectivity=0.01
62.0 µs
43.0 µs
dragon selectivity=0.5
61.3 µs
1.34 ms
dragon selectivity=0.01
54.2 µs
747.9 µs
happy_buddha selectivity=0.5
65.2 µs
1.68 ms
happy_buddha selectivity=0.01
67.0 µs
848.7 µs
lucy selectivity=0.5
550.9 µs
81.86 ms
lucy selectivity=0.01
285.4 µs
27.67 ms
flatnonzero_in_place
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
41.5 µs
1x
NumPy
10.98 ms
264x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
37.3 µs
bunny_decimated
32.8 µs
334.4 µs
bunny
44.9 µs
937.6 µs
dragon
41.5 µs
10.98 ms
happy_buddha
47.4 µs
13.69 ms
lucy
1.11 ms
409.94 ms
compress_in_place
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
37.7 µs
1x
NumPy
688.9 µs
18x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
36.9 µs
bunny_decimated
46.4 µs
23.3 µs
bunny
47.5 µs
91.9 µs
dragon
37.7 µs
688.9 µs
happy_buddha
40.9 µs
853.2 µs
lucy
296.7 µs
48.30 ms
gather
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
25.3 µs
1x
NumPy
2.53 ms
100x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
32.3 µs
bunny_decimated
26.3 µs
52.7 µs
bunny
32.1 µs
138.7 µs
dragon
25.3 µs
2.53 ms
happy_buddha
38.6 µs
3.12 ms
lucy
414.9 µs
305.62 ms
astype
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
25.0 µs
1x
NumPy
550.1 µs
22x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
23.1 µs
bunny_decimated
17.6 µs
7.9 µs
bunny
18.3 µs
22.2 µs
dragon
25.0 µs
550.1 µs
happy_buddha
24.5 µs
707.8 µs
lucy
508.0 µs
71.85 ms
copyto
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
35.1 µs
1x
NumPy
553.1 µs
16x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
14.8 µs
bunny_decimated
14.1 µs
8.3 µs
bunny
14.1 µs
19.4 µs
dragon
35.1 µs
553.1 µs
happy_buddha
22.6 µs
688.6 µs
lucy
447.6 µs
45.04 ms
index_bound
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
34.3 µs
1x
trimesh
541.8 µs
16x
All inputs
Input
ordito (CUDA)
trimesh
sphere_small
47.7 µs
bunny_decimated
30.2 µs
5.6 µs
bunny
36.5 µs
41.1 µs
dragon
34.3 µs
541.8 µs
happy_buddha
46.8 µs
674.7 µs
lucy
238.3 µs
36.79 ms
bit_ranks
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
27.5 µs
1x
NumPy
2.05 ms
74x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
30.9 µs
bunny_decimated
29.7 µs
68.2 µs
bunny
28.8 µs
188.2 µs
dragon
27.5 µs
2.05 ms
happy_buddha
28.4 µs
2.47 ms
lucy
31.4 µs
72.27 ms
mask_to_compact_ranks
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
49.0 µs
1x
NumPy
8.06 ms
165x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
38.9 µs
bunny_decimated
50.3 µs
141.4 µs
bunny
43.8 µs
668.6 µs
dragon
49.0 µs
8.06 ms
happy_buddha
63.6 µs
11.23 ms
lucy
763.6 µs
506.98 ms
counts_to_offsets
dragon (871 414 faces) · time relative to ordito, log scaleValues
Library
Median
Relative to ordito
ordito (CUDA)
28.5 µs
1x
NumPy
2.47 ms
86x
All inputs
Input
ordito (CUDA)
NumPy
sphere_small
42.0 µs
bunny_decimated
44.0 µs
62.4 µs
bunny
40.1 µs
254.0 µs
dragon
28.5 µs
2.47 ms
happy_buddha
34.6 µs
3.07 ms
lucy
182.9 µs
177.64 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: