Avatar for the scverse user
scverse
fast-array-utils
BlogDocsChangelog

CuPy support

#51Merged
Comparing
pa/cupy
(
39a9da2
) with
main
(
7319f89
)
CodSpeed Performance Gauge
×2.9
Improvements
1
Regressions
0
Untouched
87
New
0
Dropped
0
Ignored
0

Benchmarks

Improved

test_stats_benchmark[1-scipy.sparse.csr_array-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float32-is_constant]
CodSpeed Performance Gauge
×2.9
355.2 µs
123.9 µs

Passed

test_stats_benchmark[1-scipy.sparse.csr_array-float32-mean]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float32-mean]
CodSpeed Performance Gauge
+3%
332.9 µs
324 µs
test_stats_benchmark[1-scipy.sparse.csr_array-float32-sum]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float32-sum]
CodSpeed Performance Gauge
+2%
316.8 µs
310 µs
test_stats_benchmark[None-scipy.sparse.csr_array-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csr_array-float32-mean_var]
CodSpeed Performance Gauge
+1%
641.5 µs
633.4 µs
test_stats_benchmark[0-scipy.sparse.csr_array-float32-mean]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csr_array-float32-mean]
CodSpeed Performance Gauge
+1%
413.2 µs
408 µs
test_stats_benchmark[None-scipy.sparse.csr_array-float32-sum]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csr_array-float32-sum]
CodSpeed Performance Gauge
+1%
259.7 µs
256.8 µs
test_stats_benchmark[None-numpy.ndarray-float64-sum]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float64-sum]
CodSpeed Performance Gauge
+1%
129.1 µs
127.8 µs
test_stats_benchmark[1-scipy.sparse.csr_array-float64-sum]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float64-sum]
CodSpeed Performance Gauge
+1%
337.1 µs
333.8 µs
test_stats_benchmark[None-scipy.sparse.csr_array-float32-mean]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csr_array-float32-mean]
CodSpeed Performance Gauge
+1%
298.5 µs
295.7 µs
test_stats_benchmark[None-scipy.sparse.csr_array-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csr_array-float64-mean_var]
CodSpeed Performance Gauge
+1%
677.8 µs
671.4 µs
test_stats_benchmark[1-scipy.sparse.csr_array-float64-mean]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float64-mean]
CodSpeed Performance Gauge
+1%
357.5 µs
354.2 µs
test_stats_benchmark[1-numpy.ndarray-float64-sum]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float64-sum]
CodSpeed Performance Gauge
+1%
136.1 µs
134.9 µs
test_stats_benchmark[0-scipy.sparse.csr_array-float32-sum]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csr_array-float32-sum]
CodSpeed Performance Gauge
+1%
397.9 µs
394.7 µs
test_stats_benchmark[None-numpy.ndarray-float64-mean]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float64-mean]
CodSpeed Performance Gauge
+1%
166.4 µs
165.2 µs
test_stats_benchmark[1-numpy.ndarray-float64-mean]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float64-mean]
CodSpeed Performance Gauge
+1%
155 µs
153.9 µs
test_stats_benchmark[None-scipy.sparse.csc_array-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csc_array-float64-mean_var]
CodSpeed Performance Gauge
+1%
702.5 µs
697.6 µs
test_stats_benchmark[0-scipy.sparse.csr_array-float64-sum]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csr_array-float64-sum]
CodSpeed Performance Gauge
+1%
422.9 µs
420 µs
test_stats_benchmark[None-scipy.sparse.csc_array-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csc_array-float32-mean_var]
CodSpeed Performance Gauge
+1%
660.4 µs
656.1 µs
test_stats_benchmark[0-scipy.sparse.csr_array-float64-mean]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csr_array-float64-mean]
CodSpeed Performance Gauge
+1%
435.1 µs
432.5 µs
test_stats_benchmark[0-numpy.ndarray-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float64-is_constant]
CodSpeed Performance Gauge
+1%
271.1 µs
269.7 µs
test_stats_benchmark[None-scipy.sparse.csr_array-float64-sum]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csr_array-float64-sum]
CodSpeed Performance Gauge
+1%
281.1 µs
279.6 µs
test_stats_benchmark[0-numpy.ndarray-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-is_constant]
CodSpeed Performance Gauge
0%
226.6 µs
225.5 µs
test_stats_benchmark[0-scipy.sparse.csc_array-float32-mean]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csc_array-float32-mean]
CodSpeed Performance Gauge
0%
325 µs
323.5 µs
test_stats_benchmark[0-scipy.sparse.csc_array-float32-sum]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csc_array-float32-sum]
CodSpeed Performance Gauge
0%
310.7 µs
309.3 µs
test_stats_benchmark[None-scipy.sparse.csc_array-float64-sum]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csc_array-float64-sum]
CodSpeed Performance Gauge
0%
292.3 µs
291.1 µs
test_stats_benchmark[None-scipy.sparse.csc_array-float64-mean]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csc_array-float64-mean]
CodSpeed Performance Gauge
0%
318.1 µs
316.9 µs
test_stats_benchmark[1-numpy.ndarray-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float64-is_constant]
CodSpeed Performance Gauge
0%
267.7 µs
266.8 µs
test_stats_benchmark[None-scipy.sparse.csc_array-float32-mean]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csc_array-float32-mean]
CodSpeed Performance Gauge
0%
308.7 µs
307.7 µs
test_stats_benchmark[None-numpy.ndarray-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float64-mean_var]
CodSpeed Performance Gauge
0%
287.1 µs
286.3 µs
test_stats_benchmark[1-scipy.sparse.csc_array-float64-sum]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csc_array-float64-sum]
CodSpeed Performance Gauge
0%
303.3 µs
302.4 µs
test_stats_benchmark[1-numpy.ndarray-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float32-is_constant]
CodSpeed Performance Gauge
0%
224.9 µs
224.2 µs
test_stats_benchmark[None-scipy.sparse.csc_array-float32-sum]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csc_array-float32-sum]
CodSpeed Performance Gauge
0%
273.6 µs
272.8 µs
test_stats_benchmark[None-scipy.sparse.csr_array-float64-mean]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csr_array-float64-mean]
CodSpeed Performance Gauge
0%
306.8 µs
306 µs
test_stats_benchmark[0-numpy.ndarray-float64-sum]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float64-sum]
CodSpeed Performance Gauge
0%
139.7 µs
139.4 µs
test_stats_benchmark[1-scipy.sparse.csc_array-float64-mean]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csc_array-float64-mean]
CodSpeed Performance Gauge
0%
319.8 µs
319.2 µs
test_stats_benchmark[0-scipy.sparse.csc_array-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csc_array-float32-mean_var]
CodSpeed Performance Gauge
0%
175.4 µs
175 µs
test_stats_benchmark[0-scipy.sparse.csr_array-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csr_array-float64-mean_var]
CodSpeed Performance Gauge
0%
362 µs
361.3 µs
test_stats_benchmark[None-numpy.ndarray-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float32-mean_var]
CodSpeed Performance Gauge
0%
301.8 µs
301.2 µs
test_stats_benchmark[0-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
0%
133.8 µs
133.5 µs
test_stats_benchmark[1-scipy.sparse.csc_array-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csc_array-float64-mean_var]
CodSpeed Performance Gauge
0%
365.2 µs
364.6 µs
test_stats_benchmark[0-numpy.ndarray-float64-mean]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float64-mean]
CodSpeed Performance Gauge
0%
157.7 µs
157.5 µs
test_stats_benchmark[0-scipy.sparse.csc_array-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csc_array-float32-is_constant]
CodSpeed Performance Gauge
0%
107.5 µs
107.3 µs
test_stats_benchmark[0-scipy.sparse.csr_array-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csr_array-float32-mean_var]
CodSpeed Performance Gauge
0%
348.3 µs
347.9 µs
test_stats_benchmark[0-scipy.sparse.csc_array-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csc_array-float64-mean_var]
CodSpeed Performance Gauge
0%
192.2 µs
191.9 µs
test_stats_benchmark[1-scipy.sparse.csr_array-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float64-mean_var]
CodSpeed Performance Gauge
0%
188.7 µs
188.5 µs
test_stats_benchmark[0-scipy.sparse.csr_array-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csr_array-float64-is_constant]
CodSpeed Performance Gauge
0%
610.9 µs
610.3 µs
test_stats_benchmark[1-numpy.ndarray-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float32-mean_var]
CodSpeed Performance Gauge
0%
291.6 µs
291.3 µs
test_stats_benchmark[1-numpy.ndarray-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float64-mean_var]
CodSpeed Performance Gauge
0%
272.8 µs
272.5 µs
test_stats_benchmark[0-numpy.ndarray-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-mean_var]
CodSpeed Performance Gauge
0%
298.1 µs
297.8 µs
test_stats_benchmark[0-numpy.ndarray-float32-sum]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-sum]
CodSpeed Performance Gauge
0%
115.6 µs
115.5 µs
test_stats_benchmark[1-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
0%
135.4 µs
135.3 µs
test_stats_benchmark[None-numpy.ndarray-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float64-is_constant]
CodSpeed Performance Gauge
0%
130.5 µs
130.4 µs
test_stats_benchmark[1-scipy.sparse.csc_array-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csc_array-float32-mean_var]
CodSpeed Performance Gauge
0%
351 µs
350.7 µs
test_stats_benchmark[None-numpy.ndarray-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float32-is_constant]
CodSpeed Performance Gauge
0%
109.9 µs
109.8 µs
test_stats_benchmark[None-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
0%
161 µs
160.9 µs
test_stats_benchmark[None-scipy.sparse.csr_array-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csr_array-float32-is_constant]
CodSpeed Performance Gauge
0%
124.2 µs
124.1 µs
test_to_dense_benchmark[float64-scipy.sparse.csr_array-F]
tests/test_sparse.py::test_to_dense_benchmark[float64-scipy.sparse.csr_array-F]
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_stats_benchmark[1-numpy.ndarray-float32-sum]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float32-sum]
CodSpeed Performance Gauge
0%
118.2 µs
118.2 µs
test_to_dense_benchmark[float64-scipy.sparse.csc_matrix-C]
tests/test_sparse.py::test_to_dense_benchmark[float64-scipy.sparse.csc_matrix-C]
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_to_dense_benchmark[float64-scipy.sparse.csr_matrix-F]
tests/test_sparse.py::test_to_dense_benchmark[float64-scipy.sparse.csr_matrix-F]
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_to_dense_benchmark[float64-scipy.sparse.csc_array-C]
tests/test_sparse.py::test_to_dense_benchmark[float64-scipy.sparse.csc_array-C]
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_to_dense_benchmark[float32-scipy.sparse.csr_array-C]
tests/test_sparse.py::test_to_dense_benchmark[float32-scipy.sparse.csr_array-C]
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_to_dense_benchmark[float64-scipy.sparse.csc_array-F]
tests/test_sparse.py::test_to_dense_benchmark[float64-scipy.sparse.csc_array-F]
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_to_dense_benchmark[float32-scipy.sparse.csr_array-F]
tests/test_sparse.py::test_to_dense_benchmark[float32-scipy.sparse.csr_array-F]
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_to_dense_benchmark[float32-scipy.sparse.csc_array-C]
tests/test_sparse.py::test_to_dense_benchmark[float32-scipy.sparse.csc_array-C]
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_to_dense_benchmark[float32-scipy.sparse.csr_matrix-C]
tests/test_sparse.py::test_to_dense_benchmark[float32-scipy.sparse.csr_matrix-C]
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_to_dense_benchmark[float64-scipy.sparse.csr_matrix-C]
tests/test_sparse.py::test_to_dense_benchmark[float64-scipy.sparse.csr_matrix-C]
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_to_dense_benchmark[float64-scipy.sparse.csr_array-C]
tests/test_sparse.py::test_to_dense_benchmark[float64-scipy.sparse.csr_array-C]
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_to_dense_benchmark[float32-scipy.sparse.csc_matrix-C]
tests/test_sparse.py::test_to_dense_benchmark[float32-scipy.sparse.csc_matrix-C]
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_to_dense_benchmark[float32-scipy.sparse.csc_matrix-F]
tests/test_sparse.py::test_to_dense_benchmark[float32-scipy.sparse.csc_matrix-F]
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_to_dense_benchmark[float32-scipy.sparse.csr_matrix-F]
tests/test_sparse.py::test_to_dense_benchmark[float32-scipy.sparse.csr_matrix-F]
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_to_dense_benchmark[float32-scipy.sparse.csc_array-F]
tests/test_sparse.py::test_to_dense_benchmark[float32-scipy.sparse.csc_array-F]
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_to_dense_benchmark[float64-scipy.sparse.csc_matrix-F]
tests/test_sparse.py::test_to_dense_benchmark[float64-scipy.sparse.csc_matrix-F]
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_stats_benchmark[None-scipy.sparse.csr_array-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csr_array-float64-is_constant]
CodSpeed Performance Gauge
0%
143.7 µs
143.7 µs
test_stats_benchmark[None-numpy.ndarray-float32-sum]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float32-sum]
CodSpeed Performance Gauge
0%
110.4 µs
110.4 µs
test_stats_benchmark[1-scipy.sparse.csr_array-float32-mean_var]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float32-mean_var]
CodSpeed Performance Gauge
0%
172.7 µs
172.8 µs
test_stats_benchmark[0-numpy.ndarray-float64-mean_var]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float64-mean_var]
CodSpeed Performance Gauge
0%
278.7 µs
278.9 µs
test_stats_benchmark[None-scipy.sparse.csc_array-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csc_array-float64-is_constant]
CodSpeed Performance Gauge
0%
145.2 µs
145.4 µs
test_stats_benchmark[None-scipy.sparse.csc_array-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[None-scipy.sparse.csc_array-float32-is_constant]
CodSpeed Performance Gauge
0%
123.8 µs
124 µs
test_stats_benchmark[0-scipy.sparse.csc_array-float64-mean]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csc_array-float64-mean]
CodSpeed Performance Gauge
0%
348.1 µs
348.9 µs
test_stats_benchmark[0-scipy.sparse.csc_array-float64-sum]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csc_array-float64-sum]
CodSpeed Performance Gauge
0%
333.4 µs
334.2 µs
test_stats_benchmark[0-scipy.sparse.csc_array-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csc_array-float64-is_constant]
CodSpeed Performance Gauge
0%
116.1 µs
116.4 µs
test_stats_benchmark[1-scipy.sparse.csc_array-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csc_array-float64-is_constant]
CodSpeed Performance Gauge
0%
607 µs
609.3 µs
test_stats_benchmark[0-scipy.sparse.csr_array-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[0-scipy.sparse.csr_array-float32-is_constant]
CodSpeed Performance Gauge
0%
569.3 µs
571.9 µs
test_stats_benchmark[1-scipy.sparse.csc_array-float32-is_constant]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csc_array-float32-is_constant]
CodSpeed Performance Gauge
0%
568.7 µs
571.5 µs
test_stats_benchmark[1-scipy.sparse.csc_array-float32-sum]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csc_array-float32-sum]
CodSpeed Performance Gauge
-1%
277.4 µs
279.5 µs
test_stats_benchmark[1-scipy.sparse.csc_array-float32-mean]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csc_array-float32-mean]
CodSpeed Performance Gauge
-1%
292.9 µs
296.3 µs
test_stats_benchmark[1-scipy.sparse.csr_array-float64-is_constant]
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float64-is_constant]
CodSpeed Performance Gauge
-2%
108.4 µs
110.6 µs

Commits

Click on a commit to change the comparison range
Base
main
7319f89
+41.07%
Move cupy types to original locations
1555a2a
6 months ago
by flying-sheep
-75.09%
Merge branch 'main' into pa/cupy
3c542b7
6 months ago
by flying-sheep
+23.84%
fix test utils
7fa234f
6 months ago
by flying-sheep
-39.5%
get
f15338e
6 months ago
by flying-sheep
-4.86%
fix to_dense
afbabe5
6 months ago
by flying-sheep
×4.5
sum support without cupy-in-dask
871461e
6 months ago
by flying-sheep
sum works
350a21c
6 months ago
by flying-sheep
×4
mean and mean_var
5239a95
6 months ago
by flying-sheep
add workflow
2577cd3
6 months ago
by flying-sheep
-23.02%
cirun yml
b2a6633
6 months ago
by flying-sheep
+8.09%
color tests
53798d0
6 months ago
by flying-sheep
×4.8
skip remaining tests
4d4ed71
6 months ago
by flying-sheep
fix type
2144a17
6 months ago
by flying-sheep
+36.82%
fix docs
bbf256b
6 months ago
by flying-sheep
+20.89%
only sparse are limited to float
17fdffa
6 months ago
by flying-sheep
-31.14%
simpler
862faf4
6 months ago
by flying-sheep
+8.82%
Merge branch 'main' into pa/cupy
a0b0f8e
6 months ago
by flying-sheep
×3.3
b2151a3
6 months ago
by flying-sheep
-98.07%
no arraylike
9be7813
6 months ago
by flying-sheep
+18.94%
codecov
5978d1e
6 months ago
by flying-sheep
+67.35%
renames
39a9da2
6 months ago
by flying-sheep
© 2025 CodSpeed Technology
Home Terms Privacy Docs