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

`anndata.abc.CS{RC}Dataset` support

#50Merged
Comparing
pa/cs-dataset
(
1af2d6a
) with
main
(
c854c5b
)
CodSpeed Performance Gauge
-15%
Improvements
0
Regressions
2
Untouched
86
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_stats_benchmark[1-numpy.ndarray-float64-mean]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float64-mean]
CodSpeed Performance Gauge
+1%
154.9 µs
153.7 µ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%
135.5 µs
134.4 µ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%
128.4 µs
127.5 µ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
+1%
112.7 µs
112.1 µs
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
+1%
132.3 µs
131.6 µ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.5 µs
266.2 µs
test_stats_benchmark[None-numpy.ndarray-float64-mean]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float64-mean]
CodSpeed Performance Gauge
0%
165.3 µs
164.5 µ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.8 µs
225.7 µ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
0%
271.5 µs
270.2 µ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.7 µs
223.8 µ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
0%
257.1 µs
256.4 µ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%
351.4 µs
350.7 µ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%
97.2 µs
97 µ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%
261.4 µs
261 µ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%
279.4 µs
279.1 µ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
0%
310.7 µs
310.5 µs
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
0%
325.6 µs
325.4 µ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%
336.4 µs
336.2 µ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%
339 µs
338.8 µ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.4 µs
157.4 µ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
0%
296.4 µs
296.3 µ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%
286 µs
286 µ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
0%
280.3 µs
280.3 µ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%
305.9 µs
305.9 µs
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_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[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_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_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%
349.4 µs
349.4 µ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
0%
667.2 µs
667.2 µs
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[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_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_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%
336 µs
336 µ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%
180.7 µs
180.7 µ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%
106.1 µs
106.1 µ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%
267.1 µs
267.2 µs
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_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
0%
295.6 µs
295.7 µs
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.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[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_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[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_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_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-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%
176.4 µs
176.5 µs
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_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%
353.1 µs
353.2 µ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%
161 µs
161 µ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
0%
279 µs
279.1 µ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
0%
648.7 µs
649 µ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%
289.6 µs
289.7 µ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%
602.1 µs
602.5 µ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
0%
356 µs
356.3 µ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%
164 µs
164.1 µ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
0%
335.4 µs
335.8 µ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 µs
139.1 µ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.4 µs
309 µ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%
134.6 µs
134.8 µ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%
604.3 µs
605.6 µ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%
275.3 µs
276.1 µ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%
111.7 µs
112 µ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%
317.3 µs
318.2 µ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%
563.8 µs
565.5 µ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
0%
693.6 µs
696 µ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%
562.6 µs
564.6 µs
test_stats_benchmark[1-numpy.ndarray-float32-sum]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float32-sum]
CodSpeed Performance Gauge
0%
117.2 µs
117.6 µ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%
160 µs
160.6 µ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%
291.5 µs
292.6 µ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
0%
627.4 µs
629.9 µ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%
272.6 µs
273.7 µ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%
133 µs
133.6 µ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
321.4 µs
test_stats_benchmark[None-numpy.ndarray-float32-sum]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float32-sum]
CodSpeed Performance Gauge
-1%
109.3 µs
109.9 µ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
-1%
129.4 µs
130.1 µ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
-1%
302.8 µs
304.8 µ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
-1%
109 µs
109.7 µ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%
432.9 µs
436.2 µ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%
420.6 µs
424.1 µ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
-1%
311.2 µs
314.8 µ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
-1%
325.7 µs
329.5 µ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%
394.6 µs
399.3 µ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
-2%
408.2 µs
414.8 µs
test_stats_benchmark[0-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
-6%
133.6 µs
142.1 µs
test_stats_benchmark[0-numpy.ndarray-float32-sum]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-sum]
CodSpeed Performance Gauge
-7%
115.3 µs
124.2 µs
test_stats_benchmark[1-scipy.sparse.csr_array-float32-is_constant]Regression
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float32-is_constant]
CodSpeed Performance Gauge
-14%
277.1 µs
323.7 µs
test_stats_benchmark[1-scipy.sparse.csr_array-float64-is_constant]Regression
tests/test_stats.py::test_stats_benchmark[1-scipy.sparse.csr_array-float64-is_constant]
CodSpeed Performance Gauge
-15%
103.1 µs
120.7 µs

Commits

Click on a commit to change the comparison range
Base
main
c854c5b
+98%
editorconfig
5d033e7
3 months ago
by flying-sheep
-77%
I hate mypy
4c1bbc4
3 months ago
by flying-sheep
-6%
to_dense works
31afbf1
3 months ago
by flying-sheep
+201%
fix test_array_types
b7ceaee
3 months ago
by flying-sheep
-235%
fix ArrayType
ab85187
3 months ago
by flying-sheep
-13%
improve array type
c5654a5
3 months ago
by flying-sheep
-11%
skip individual array types
54c12c7
3 months ago
by flying-sheep
+29%
mypy :(
1af2d6a
3 months ago
by flying-sheep
© 2025 CodSpeed Technology
Home Terms PrivacyDocs