Avatar for the MarshalX user
MarshalX
python-libipld
BlogDocsChangelog

Optimize CAR decoding by reducing allocations

#90Merged
Comparing
test-no-cid-alloc
(
ffd5594
) with
main
(
b0a757b
)
CodSpeed Performance Gauge
0%
Untouched
192

Benchmarks

192 total
test_dag_cbor_decode_real_data[github.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+8%
804.2 µs742.5 µs
test_decode_car
pytests/test_decode_car.py
CodSpeed Performance Gauge
+3%
487.5 ms472.9 ms
test_dag_cbor_decode[roundtrip13.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+3%
17.4 µs16.9 µs
test_dag_cbor_decode[roundtrip03.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+3%
16.6 µs16.2 µs
test_dag_cbor_decode[roundtrip20.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
16.3 µs16.1 µs
test_dag_cbor_encode_real_data[github.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
596.3 µs588.1 µs
test_dag_cbor_decode[roundtrip18.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
17 µs16.8 µs
test_dag_cbor_decode_fixtures[garbage-24]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
28.7 µs28.4 µs
test_dag_cbor_decode_fixtures[garbage-10]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
29 µs28.7 µs
test_dag_cbor_encode[roundtrip02.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
18.1 µs17.9 µs
test_dag_cbor_decode_fixtures[float-array_of_specials]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
16.9 µs16.8 µs
test_dag_cbor_decode_fixtures[garbage-18]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
43.1 µs42.8 µs
test_dag_cbor_decode_fixtures[int--11959030306112471732]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
15.4 µs15.2 µs
test_dag_cbor_decode_fixtures[garbage-11]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
56.5 µs56.1 µs
test_dag_cbor_decode_fixtures[array-9007199254740991]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
16.9 µs16.8 µs
test_dag_cbor_decode[roundtrip10.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
17.6 µs17.5 µs
test_dag_cbor_decode_fixtures[int-255]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
14.2 µs14.1 µs
test_dag_cbor_decode_fixtures[int--3]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
14.8 µs14.7 µs
test_dag_cbor_decode_fixtures[ipns]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
19.7 µs19.6 µs
test_dag_cbor_encode[roundtrip06.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
17.2 µs17.1 µs
test_dag_cbor_decode_fixtures[array-3,4,5,6]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
15.9 µs15.8 µs
test_dag_cbor_decode[roundtrip11.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
17 µs16.9 µs
test_dag_cbor_decode_fixtures[string-\U00010151]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
16.3 µs16.3 µs
test_dag_cbor_encode[roundtrip14.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
18.9 µs18.8 µs

Commits

Click on a commit to change the comparison range
Base
main
b0a757b
-0.15%
Test alloc avoiding in CAR decoder for CIDs
ffd5594
3 months ago
by MarshalX
© 2026 CodSpeed Technology
Home Terms Privacy Docs