Avatar for the MarshalX user
MarshalX
python-libipld
BlogDocsChangelog

Optimize DAG-CBOR encoding for arrays and maps

#88Merged
Comparing
test-get-item-unchecked
(
5b52f03
) with
main
(
151672d
)
CodSpeed Performance Gauge
0%
Untouched
192

Benchmarks

192 total
test_dag_cbor_encode_real_data[canada.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+8%
15.9 ms14.8 ms
test_dag_cbor_decode_real_data[github.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+6%
804.3 µs757 µs
test_dag_cbor_decode_fixtures[garbage-07]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+4%
33.9 µs32.7 µs
test_dag_cbor_encode_real_data[citm_catalog.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+3%
14.8 ms14.4 ms
test_dag_cbor_decode[roundtrip03.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+3%
16.7 µs16.2 µs
test_dag_cbor_decode_fixtures[garbage-15]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
26.4 µs25.8 µs
test_dag_cbor_decode_fixtures[garbage-11]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
56.6 µs55.6 µs
test_dag_cbor_decode_fixtures[garbage-05]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
43.3 µs42.6 µs
test_dag_cbor_decode_fixtures[garbage-18]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
43.2 µs42.5 µs
test_dag_cbor_decode_fixtures[garbage-24]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
28.8 µs28.4 µs
test_dag_cbor_decode[roundtrip13.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
17.5 µs17.3 µs
test_dag_cbor_decode_fixtures[int--9007199254740992]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
15.5 µs15.3 µs
test_dag_cbor_decode_fixtures[int-2]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
14.3 µs14.1 µs
test_dag_cbor_decode_fixtures[float-82497.63712086187]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
14.4 µs14.2 µs
test_dag_cbor_decode_fixtures[garbage-10]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
29 µs28.8 µs
test_dag_cbor_decode_fixtures[cid-bagcqcera73rupyla6bauseyk75rslfys3st25spm75ykhvgusqvv2zfqtucq]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
16 µs15.8 µs
test_dag_cbor_decode_fixtures[array-3,4,5,6]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
16.1 µs15.9 µs
test_dag_cbor_decode[roundtrip05.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
17.2 µs17 µs
test_dag_cbor_decode_fixtures[float-array_of_specials]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
17.1 µs16.9 µs
test_dag_cbor_encode[roundtrip03.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
18.2 µs18 µs
test_dag_cbor_decode_fixtures[int-255]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
14.3 µs14.2 µs
test_dag_cbor_decode[roundtrip07.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
14.4 µs14.2 µs
test_dag_cbor_decode_fixtures[int--11959030306112471732]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
15.5 µs15.3 µs
test_dag_cbor_decode_fixtures[ipns]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
19.8 µs19.6 µs
test_dag_cbor_decode[roundtrip02.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
16.3 µs16.2 µs

Commits

Click on a commit to change the comparison range
Base
main
151672d
+0.43%
Test `get_item_unchecked`
3114d4b
3 months ago
by MarshalX
-0.1%
code cleanup
5b52f03
3 months ago
by MarshalX
© 2026 CodSpeed Technology
Home Terms Privacy Docs