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

Add mean_var

#46Merged
Comparing
pa/mean-var
(
8317937
) with
main
(
2c7a94a
)
CodSpeed Performance Gauge
-52%
Improvements
1
Regressions
1
Untouched
68
New
18
Dropped
0
Ignored
0

Benchmarks

Failed

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
-52%
97.6 µs
204.7 µs

Improved

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.3
216.3 µs
96.1 µs

New

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
N/A
N/A
345.7 µ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
N/A
N/A
326.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
N/A
N/A
164.1 µ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
N/A
N/A
180.5 µ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
N/A
N/A
335.5 µ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
N/A
N/A
348.8 µ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
N/A
N/A
339.1 µ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
N/A
N/A
320.9 µ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
N/A
N/A
338.8 µ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
N/A
N/A
353 µ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
N/A
N/A
160.7 µ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
N/A
N/A
176.6 µ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
N/A
N/A
346.3 µ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
N/A
N/A
331 µ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
N/A
N/A
698.6 µ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
N/A
N/A
740.2 µ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
N/A
N/A
679.5 µ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
N/A
N/A
714.7 µs

Passed

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
+2%
314.3 µs
307.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
+2%
360 µs
353.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
+2%
344.9 µs
339.6 µ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
+2%
344.2 µs
338.9 µ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%
468.9 µs
462.1 µ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
+1%
88.6 µs
87.4 µ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%
328.2 µs
324.2 µ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%
445.3 µs
440.2 µ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%
327 µs
323.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%
454.2 µs
449.6 µs
test_stats_benchmark[1-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
+1%
177.8 µs
176 µ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
+1%
342.7 µs
339.6 µ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
+1%
352.7 µs
349.5 µ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
+1%
353.6 µs
350.6 µ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%
177.7 µs
176.6 µ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%
341.8 µs
340 µ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%
335.6 µs
333.9 µ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
223.9 µ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%
381 µs
379.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
0%
427.5 µs
425.6 µ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.7 µs
605.1 µ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%
196.6 µs
195.8 µ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.5 µs
133 µ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%
202.3 µs
201.8 µ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%
365.2 µs
364.3 µ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
0%
329.3 µs
328.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%
354.7 µs
354.1 µ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
111.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
0%
385.5 µs
384.8 µ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.1 µ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%
313.6 µs
313.3 µ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%
171.9 µs
171.8 µ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%
565.7 µs
565.4 µ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%
364.2 µs
364 µ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%
158.5 µs
158.4 µ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%
567.6 µs
567.5 µs
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_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-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[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.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[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[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-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_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.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[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_stats_benchmark[0-numpy.ndarray-float64-sum]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float64-sum]
CodSpeed Performance Gauge
0%
180.3 µs
180.4 µ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.2 µs
132.3 µs
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.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_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%
96.5 µs
96.6 µs
test_stats_benchmark[1-numpy.ndarray-float64-mean]
tests/test_stats.py::test_stats_benchmark[1-numpy.ndarray-float64-mean]
CodSpeed Performance Gauge
0%
195.8 µs
196.1 µ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%
198.7 µs
199.1 µ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%
269.6 µs
270.2 µ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%
129.4 µs
129.8 µ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%
225.5 µs
226.2 µ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%
603.8 µs
606.1 µ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%
108.9 µs
109.3 µ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%
304.3 µs
305.6 µ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%
288.6 µs
290 µ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%
152.4 µs
153.2 µ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
-1%
265.3 µs
266.7 µ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%
158.4 µs
164.4 µs
test_stats_benchmark[0-numpy.ndarray-float32-mean]
tests/test_stats.py::test_stats_benchmark[0-numpy.ndarray-float32-mean]
CodSpeed Performance Gauge
-5%
175 µs
183.6 µs

Commits

Click on a commit to change the comparison range
Base
main
2c7a94a
-42%
skeleton
a78fc9d
2 months ago
by flying-sheep
-11%
works
5cdcc43
2 months ago
by flying-sheep
-25%
just ignore stuff
0608d4a
2 months ago
by flying-sheep
+17%
add mean_var benchmarks
7be0ddd
2 months ago
by flying-sheep
-18%
Update tests/test_stats.py Co-authored-by: Philipp A. <flying-sheep@web.de>
03e2761
2 months ago
by ilan-gold
+26%
add note
8317937
2 months ago
by flying-sheep
© 2025 CodSpeed Technology
Home Terms PrivacyDocs