Avatar for the pydata user
pydata
sparse
BlogDocsChangelog

fix: return 0-D array for full reductions per Array API standard

#932
Comparing
Abineshabee:fix/array-api-reduction-returns-0d-array
(
4efc908
) with
main
(
3589a7c
)
CodSpeed Performance Gauge
-43%
Regression
1
Untouched
339

Benchmarks

340 total
test_index_slice[side=100-rank=2-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
-43%
1.7 ms3 ms
test_index_fancy[side=100-rank=3-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+5%
3.1 ms2.9 ms
test_index_fancy[side=1000-rank=2-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+4%
4.1 ms3.9 ms
test_elemwise[side=1000-rank=2-format='coo'-add]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+3%
16 ms15.4 ms
test_elemwise[side=100-rank=3-format='coo'-mul]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+2%
7.6 ms7.5 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=10-n=10-p=50-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
4.6 ms4.5 ms
test_tensordot[left_index=1-right_index=1-left_format='coo'-right_format='dense'-m=10-n=10-p=50-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
2.6 ms2.6 ms
test_matmul[m=1000-n=1000-p=500-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
21.7 ms21.5 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=50-n=20-p=50-q=50-ndarray]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
9.2 ms9.1 ms
test_matmul[m=500-n=1000-p=1000-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
21.8 ms21.6 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=50-n=20-p=50-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
17.4 ms17.2 ms
test_tensordot[left_index=1-right_index=2-left_format='coo'-right_format='coo'-m=50-n=20-p=50-q=50-ndarray]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
10 ms10 ms
test_index_slice[side=1000-rank=2-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
1.4 ms1.4 ms
test_tensordot[left_index=1-right_index=2-left_format='coo'-right_format='coo'-m=50-n=20-p=50-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
10.2 ms10.1 ms
test_index_fancy[side=500-rank=2-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
1.7 ms1.7 ms
test_matmul[m=500-n=1000-p=200-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
5.9 ms5.9 ms
test_matmul[m=1000-n=500-p=500-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
13 ms12.9 ms
test_elemwise[mul-side=500-SciPy]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
+1%
477.5 µs474.9 µs
test_elemwise[gt-side=500-Finch]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
+1%
863.4 µs858.7 µs
test_matmul[m=1000-n=200-p=1000-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
14.5 ms14.5 ms
test_matmul[m=200-n=1000-p=500-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
6.4 ms6.3 ms
test_matmul[m=1000-n=1000-p=1000-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
0%
41 ms40.9 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=10-n=20-p=20-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
test_matmul[m=500-n=200-p=500-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
0%
4.9 ms4.9 ms
test_elemwise[gt-side=500-Numba]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
0%
2.5 ms2.5 ms

Commits

Click on a commit to change the comparison range
Base
main
3589a7c
-54.75%
fix: return 0-D array instead of scalar in reduce() and var()
9304ca7
7 days ago
by Abineshabee
+12.1%
fix: update mean() docstring and fix einsum performance regression
4efc908
17 hours ago
by Abineshabee
© 2026 CodSpeed Technology
Home Terms Privacy Docs