Avatar for the MarshalX user
MarshalX
python-libipld
BlogDocsChangelog

Optimize DAG-CBOR encode/decode and CAR block parsing

#104Merged
Comparing
optimize-encode-decode
(
341f165
) with
main
(
2163f07
)
CodSpeed Performance Gauge
+18%
Improvement
31
Regression
1
Untouched
160

Benchmarks

192 total
test_dag_cbor_decode_real_data[twitter.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-18%
6.5 ms8 ms
test_dag_cbor_encode_real_data[citm_catalog.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+79%
14.6 ms8.1 ms
test_dag_cbor_encode_real_data[github.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+48%
611.7 µs412.7 µs
test_dag_cbor_encode[roundtrip09.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+42%
19.1 µs13.5 µs
test_dag_cbor_encode_real_data[twitter.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+40%
5.4 ms3.8 ms
test_dag_cbor_encode[roundtrip10.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+40%
19.3 µs13.8 µs
test_dag_cbor_encode[roundtrip07.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+25%
15 µs12 µs
test_dag_cbor_encode[roundtrip05.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+22%
14.9 µs12.2 µs
test_dag_cbor_encode[roundtrip06.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+17%
13.2 µs11.3 µs
test_dag_cbor_encode[roundtrip03.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+17%
14.2 µs12.1 µs
test_dag_cbor_encode_real_data[canada.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+16%
14.2 ms12.3 ms
test_dag_cbor_encode[roundtrip01.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+15%
14 µs12.2 µs
test_dag_cbor_encode[roundtrip20.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+15%
14.3 µs12.5 µs
test_dag_cbor_encode[roundtrip08.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+15%
15.1 µs13.2 µs
test_dag_cbor_encode[roundtrip04.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
15 µs13.1 µs
test_dag_cbor_encode[roundtrip22.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
14.3 µs12.5 µs
test_dag_cbor_encode[roundtrip26.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
14.3 µs12.6 µs
test_dag_cbor_encode[roundtrip02.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
16 µs14 µs
test_dag_cbor_encode[roundtrip12.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
15.2 µs13.4 µs
test_dag_cbor_encode[roundtrip21.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
14.3 µs12.6 µs
test_dag_cbor_encode[roundtrip25.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
14.3 µs12.6 µs
test_dag_cbor_encode[roundtrip11.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
14.9 µs13.1 µs
test_dag_cbor_encode[roundtrip15.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+13%
14.8 µs13.1 µs
test_dag_cbor_encode[roundtrip17.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+13%
15.7 µs13.9 µs
test_dag_cbor_encode[roundtrip27.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+13%
14.2 µs12.6 µs

Commits

Click on a commit to change the comparison range
Base
main
2163f07
+18.21%
Optimize DAG-CBOR encode/decode and CAR block parsing
1059358
2 months ago
by MarshalX
-0.24%
Fix clippy
341f165
2 months ago
by MarshalX
© 2026 CodSpeed Technology
Home Terms Privacy Docs