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_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_index_fancy[side=1000-rank=2-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+2%
6.6 ms6.5 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=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_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_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
test_index_scalar[side=1000-rank=2-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
1.5 ms1.5 ms
test_index_scalar[side=100-rank=2-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
1.5 ms1.5 ms
test_tensordot[left_index=1-right_index=2-left_format='dense'-right_format='coo'-m=50-n=20-p=20-q=50-ndarray]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
4.5 ms4.5 ms
test_matmul[m=1000-n=1000-p=200-coo]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
10 ms9.9 ms
test_matmul[m=500-n=500-p=500-coo]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
8.1 ms8 ms
test_index_scalar[side=100-rank=3-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
1.6 ms1.6 ms
test_tensordot[left_index=1-right_index=1-left_format='coo'-right_format='dense'-m=10-n=20-p=50-q=50-COO]
benchmarks/test_tensordot.py
CodSpeed Performance Gauge
+1%
4 ms4 ms
test_index_slice[side=1000-rank=2-format='gcxs']
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
4.2 ms4.2 ms
test_matmul[m=500-n=200-p=200-gcxs]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
6 ms6 ms
test_elemwise_broadcast[side=100-format='coo'-add]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
14.2 ms14.1 ms
test_elemwise[side=100-rank=2-format='gcxs'-mul]
benchmarks/test_benchmark_coo.py
CodSpeed Performance Gauge
+1%
6.9 ms6.8 ms

Commits

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