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

implement and test mean

#44Merged
Comparing
pa/mean
(
47a02ff
) with
main
(
bdae03a
)
CodSpeed Performance Gauge
+1%
Improvements
0
Regressions
0
Untouched
52
New
18
Dropped
0
Ignored
0

Benchmarks

New

test_stats_benchmark[0-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
N/A
N/A
173.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
N/A
N/A
198.7 µ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
N/A
N/A
362.3 µ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
N/A
N/A
381.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
N/A
N/A
446.4 µ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
N/A
N/A
467 µs
test_stats_benchmark[1-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
N/A
N/A
177.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
N/A
N/A
195 µ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
N/A
N/A
328.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
N/A
N/A
353 µ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
N/A
N/A
353.7 µ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
N/A
N/A
386.9 µs
test_stats_benchmark[None-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
N/A
N/A
196.4 µs
test_stats_benchmark[None-numpy.ndarray-float64-mean]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float64-mean]
CodSpeed Performance Gauge
N/A
N/A
202.4 µ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
N/A
N/A
341.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
N/A
N/A
351.9 µ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
N/A
N/A
327.6 µ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
N/A
N/A
345.6 µs

Passed

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
+6%
103.1 µs
96.9 µ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
+6%
94 µs
88.9 µs
test_stats_benchmark[1-numpy.ndarray-float64-sum]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float64-sum]
CodSpeed Performance Gauge
+5%
185.1 µs
177 µs
test_stats_benchmark[1-numpy.ndarray-float32-sum]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float32-sum]
CodSpeed Performance Gauge
+4%
164.5 µs
158.4 µs
test_stats_benchmark[0-numpy.ndarray-float32-sum]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-sum]
CodSpeed Performance Gauge
+4%
163.5 µs
157.7 µs
test_stats_benchmark[0-numpy.ndarray-float64-sum]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float64-sum]
CodSpeed Performance Gauge
+3%
186.3 µs
180.1 µ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
+2%
271.7 µs
266.3 µ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
+2%
373.5 µs
366.5 µ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
+2%
228.7 µs
224.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
+2%
273.9 µs
268.9 µ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
+2%
229.4 µs
226 µ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%
348.2 µs
343.1 µ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
+1%
331 µs
327 µ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%
370.8 µs
366.4 µ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%
339.5 µs
335.5 µ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
+1%
346.1 µs
342.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%
316.1 µs
313.1 µ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%
289.9 µs
288.2 µ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%
430.9 µs
428.7 µs
test_stats_benchmark[None-numpy.ndarray-float64-sum]
tests/test_stats.py::test_stats_benchmark[None-numpy.ndarray-float64-sum]
CodSpeed Performance Gauge
0%
172.1 µs
171.6 µ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%
153.2 µs
152.8 µ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
0%
455 µs
454.6 µ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
0%
132.7 µs
132.6 µ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%
605.9 µs
605.7 µs
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_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[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_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.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_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_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-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[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.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[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-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[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.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-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[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%
301.6 µs
302.2 µ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%
111.9 µs
112.2 µ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%
112.3 µs
112.6 µ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.1 µs
133.6 µ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%
314.3 µs
315.7 µ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.3 µs
130.1 µ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
-1%
563.9 µs
567.2 µ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%
108.9 µs
109.6 µ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
-1%
563.9 µs
567.9 µ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
-1%
603.9 µs
610.6 µs
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
-6%
99 µs
105.6 µ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
-6%
144.7 µs
154.6 µs

Commits

Click on a commit to change the comparison range
Base
main
bdae03a
-38%
implement and test mean
4abe5ed
3 months ago
by flying-sheep
-11%
add /
7778b77
3 months ago
by flying-sheep
+5%
rename
985070d
3 months ago
by flying-sheep
0%
docstring
0933789
3 months ago
by flying-sheep
-34%
remove type aliases
a683a84
3 months ago
by flying-sheep
+29%
remove abc
6edcee6
3 months ago
by flying-sheep
+50%
name things
65896b8
3 months ago
by flying-sheep
0%
simplify docs
47a02ff
3 months ago
by flying-sheep
© 2025 CodSpeed Technology
Home Terms Privacy Docs