Avatar for the MarshalX user
MarshalX
python-libipld
BlogDocsChangelog

Optimize DAG-CBOR string decode with ASCII fast path

#105Merged
Comparing
optimize-decode-ascii-fast-path
(
63a1ed3
) with
main
(
4c7905a
)
CodSpeed Performance Gauge
-12%
Regression
2
Untouched
190

Benchmarks

192 total
test_dag_cbor_decode_fixtures[map-1_pair_rev]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-13%
11.7 µs13.4 µs
test_dag_cbor_decode_fixtures[map-1_pair]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-12%
11.7 µs13.3 µs
test_decode_car
pytests/test_decode_car.py
CodSpeed Performance Gauge
-8%
469.9 ms511.4 ms
test_dag_cbor_encode[roundtrip02.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+8%
14.9 µs13.9 µs
test_dag_cbor_decode_fixtures[string-a]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-8%
10.6 µs11.4 µs
test_dag_cbor_encode_real_data[github.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+4%
429.5 µs412.7 µs
test_dag_cbor_decode_fixtures[garbage-21]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+4%
20.1 µs19.4 µs
test_dag_cbor_decode_fixtures[dagpb_7unnamedlinks+data]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-3%
27.3 µs28.2 µs
test_dag_cbor_decode_fixtures[map-with_complex_entries]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-3%
27 µs27.9 µs
test_dag_cbor_decode[roundtrip21.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-3%
12.3 µs12.7 µs
test_dag_cbor_decode_fixtures[garbage-16]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-3%
47.8 µs49.3 µs
test_dag_cbor_decode_fixtures[map-nested]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-3%
15.7 µs16.2 µs
test_dag_cbor_decode_fixtures[garbage-19]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
25.2 µs25.8 µs
test_dag_cbor_decode_fixtures[float-1e-323]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
10.4 µs10.7 µs
test_dag_cbor_decode_fixtures[dagpb_simple_forms_4]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
18.9 µs19.4 µs
test_dag_cbor_decode_fixtures[garbage-20]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
39.6 µs38.7 µs
test_dag_cbor_decode_fixtures[string-\u6c34]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
12.9 µs13.2 µs
test_dag_cbor_decode_fixtures[string-empty]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
10.5 µs10.8 µs
test_dag_cbor_decode_fixtures[garbage-10]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
25 µs25.6 µs
test_dag_cbor_decode_fixtures[float-1.1111111111111112]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
10.5 µs10.7 µs
test_dag_cbor_decode_fixtures[garbage-11]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
52.6 µs53.7 µs
test_dag_cbor_decode_fixtures[array-5-nested]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
15.7 µs16 µs
test_dag_cbor_decode_fixtures[array-mixed]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
17.5 µs17.9 µs
test_dag_cbor_decode_fixtures[float-82497.63712086187]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
10.4 µs10.6 µs
test_dag_cbor_decode_fixtures[string-\U00010151]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
12.6 µs12.8 µs

Commits

Click on a commit to change the comparison range
Base
main
4c7905a
-12.49%
Optimize DAG-CBOR string decode with ASCII fast path
ee2735d
1 month ago
by MarshalX
0%
Fix fmt
63a1ed3
1 month ago
by MarshalX
© 2026 CodSpeed Technology
Home Terms Privacy Docs