Avatar for the pydata user
pydata
sparse
BlogDocsChangelog

BUG: asarray: fix default format for `SparseArray` input

#918Merged
Comparing
lucascolley:asarray-default
(
ac5785d
) with
main
(
67be471
)
CodSpeed Performance Gauge
-20%
Regression
1
Untouched
339

Benchmarks

340 total
test_index_fancy[side=100-rank=1-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
-20%
748.3 µs934.6 µs
test_elemwise_broadcast[side=1000-format='coo'-mul]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+2%
79.8 ms78.3 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=50-n=10-p=50-q=50-ndarray]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+2%
5.2 ms5.1 ms
test_elemwise[add-side=1000-SciPy]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
+2%
494.4 µs486.2 µs
test_tensordot[left_index=1-right_index=2-left_format='coo'-right_format='coo'-m=50-n=10-p=50-q=50-ndarray]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
6 ms5.9 ms
test_tensordot[left_index=1-right_index=2-left_format='coo'-right_format='coo'-m=50-n=10-p=50-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
6.2 ms6.1 ms
test_elemwise[side=100-rank=3-format='coo'-add]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
17.5 ms17.2 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=50-n=20-p=50-q=10-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
4.8 ms4.8 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=50-n=10-p=20-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
5.2 ms5.2 ms
test_elemwise[side=1000-rank=2-format='gcxs'-add]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
21.9 ms21.7 ms
test_elemwise_broadcast[side=100-format='gcxs'-add]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
18.8 ms18.7 ms
test_elemwise[mul-side=500-SciPy]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
+1%
477.8 µs473.4 µs
test_matmul[m=200-n=1000-p=1000-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
7.5 ms7.4 ms
test_elemwise_broadcast[side=500-format='gcxs'-mul]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
17.6 ms17.4 ms
test_elemwise[side=1000-rank=2-format='coo'-add]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
15.4 ms15.3 ms
test_elemwise_broadcast[side=100-format='gcxs'-mul]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
5.9 ms5.9 ms
test_matmul[m=1000-n=500-p=1000-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
23.7 ms23.5 ms
test_matmul[m=1000-n=1000-p=500-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
21.8 ms21.6 ms
test_matmul[m=500-n=1000-p=1000-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
21.9 ms21.7 ms
test_matmul[m=1000-n=500-p=200-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
5.3 ms5.3 ms
test_matmul[m=1000-n=500-p=200-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
5.9 ms5.8 ms
test_elemwise[mul-side=100-SciPy]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
+1%
452.9 µs450 µs
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_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=50-n=10-p=50-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
10.7 ms10.6 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=50-n=10-p=50-q=10-ndarray]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
1.9 ms1.9 ms

Commits

Click on a commit to change the comparison range
Base
main
67be471
-19.94%
BUG: asarray: fix default format for `SparseArray` input
ac5785d
2 days ago
by lucascolley
© 2026 CodSpeed Technology
Home Terms Privacy Docs