Avatar for the pydata user
pydata
sparse
BlogDocsChangelog

feat: `__getitem__` logic for MLIR backend

#779
Comparing
getitem-func
(
fbd4586
) with
main
(
db60537
)
CodSpeed Performance Gauge
-55%
Regression
2
Untouched
338

Benchmarks

340 total
test_index_fancy[side=100-rank=1-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
-55%
643.5 µs1,418.3 µs
test_index_slice[side=100-rank=2-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
-20%
2.2 ms2.7 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
-3%
9.3 ms9.6 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
-2%
10.3 ms10.6 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
-2%
10.5 ms10.8 ms
test_index_fancy[side=100-rank=3-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+2%
3.6 ms3.5 ms
test_elemwise[f=<built-in function add>-backend='Numba'-side=100]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
+2%
4 ms3.9 ms
test_tensordot[left_index=1-right_index=1-left_format='coo'-right_format='dense'-m=50-n=20-p=50-q=50-ndarray]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
-2%
10.8 ms10.9 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
-2%
17.5 ms17.7 ms
test_index_fancy[side=1000-rank=2-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+2%
6.6 ms6.5 ms
test_elemwise[f=<built-in function add>-backend='Numba'-side=500]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
-1%
4.4 ms4.4 ms
test_index_fancy[side=100-rank=3-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
7.2 ms7.1 ms
test_tensordot[left_index=1-right_index=1-left_format='coo'-right_format='dense'-m=50-n=20-p=50-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
-1%
11.6 ms11.8 ms
test_tensordot[left_index=1-right_index=2-left_format='coo'-right_format='coo'-m=50-n=20-p=20-q=50-ndarray]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
5.6 ms5.6 ms
test_tensordot[left_index=1-right_index=2-left_format='coo'-right_format='coo'-m=50-n=20-p=20-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
5.9 ms5.8 ms
test_elemwise_broadcast[side=500-format='gcxs'-mul]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
-1%
19.9 ms20.1 ms
test_index_fancy[side=1000-rank=2-format='coo']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
4.6 ms4.5 ms
test_matmul[m=200-n=1000-p=1000-gcxs]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
8 ms7.9 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%
3 ms2.9 ms
test_elemwise_broadcast[side=100-format='gcxs'-add]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
22.3 ms22.1 ms
test_elemwise_broadcast[side=1000-format='coo'-mul]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
-1%
74.5 ms75.2 ms
test_elemwise[f=<built-in function gt>-backend='Finch'-side=500]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
-1%
879.6 µs887.4 µs
test_elemwise[f=<built-in function gt>-backend='Finch'-side=100]
benchmarks/test_elemwise.py
CodSpeed Performance Gauge
-1%
708.9 µs715 µs
test_matmul[m=500-n=1000-p=500-coo]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
12.3 ms12.2 ms
test_index_scalar[side=500-rank=2-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
1.5 ms1.5 ms

Commits

Click on a commit to change the comparison range
Base
main
db60537
-54.63%
ENH: Implemented __getitem__ logic
fbd4586
2 years ago
by mtsokol
© 2026 CodSpeed Technology
Home Terms Privacy Docs