Avatar for the MarshalX user
MarshalX
python-libipld
BlogDocsChangelog

Optimize int encode with direct PyLong digit read

#107Merged
Comparing
optimize-pylong-int
(
87d86d2
) with
main
(
d2eaf4d
)
CodSpeed Performance Gauge
+12%
Improvement
1
Untouched
191

Benchmarks

192 total
test_dag_cbor_encode_real_data[citm_catalog.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+12%
8.1 ms7.2 ms
test_dag_cbor_encode[roundtrip17.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+9%
13.8 µs12.7 µs
test_dag_cbor_encode[roundtrip12.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+9%
13.4 µs12.3 µs
test_dag_cbor_encode[roundtrip11.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+7%
13.1 µs12.2 µs
test_dag_cbor_encode[roundtrip08.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+7%
13.2 µs12.4 µs
test_dag_cbor_encode[roundtrip04.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+7%
13.1 µs12.2 µs
test_dag_cbor_encode[roundtrip16.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+7%
16.3 µs15.3 µs
test_dag_cbor_encode[roundtrip15.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+6%
13.1 µs12.3 µs
test_dag_cbor_decode_real_data[twitter.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-6%
4.9 ms5.2 ms
test_dag_cbor_encode_real_data[twitter.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+4%
3.8 ms3.7 ms
test_dag_cbor_decode[roundtrip24.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+3%
13.1 µs12.7 µs
test_dag_cbor_decode[roundtrip25.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+3%
13.2 µs12.7 µs
test_dag_cbor_decode_fixtures[string-a]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
11.6 µs11.4 µs
test_dag_cbor_decode[roundtrip04.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
12.2 µs12.5 µs
test_dag_cbor_decode_fixtures[array-6433713753386423]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
13.2 µs13 µs
test_dag_cbor_decode_fixtures[string-long-8bit]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
11.9 µs11.7 µs
test_dag_cbor_decode_fixtures[cid-bagcqcera73rupyla6bauseyk75rslfys3st25spm75ykhvgusqvv2zfqtucq]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
12.2 µs12 µs
test_dag_cbor_encode_real_data[github.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
-2%
412.6 µs419.6 µs
test_dag_cbor_decode[roundtrip16.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
13.2 µs13 µs
test_dag_cbor_decode_fixtures[int-9007199254740991]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
11.2 µs11 µs
test_dag_cbor_decode_fixtures[int-9223372036854775807]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
11.3 µs11.1 µs
test_dag_cbor_decode_fixtures[int-11959030306112471731]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+2%
11.3 µs11.1 µs
test_dag_cbor_decode_fixtures[dagpb_1link]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
16 µs15.8 µs
test_dag_cbor_decode_fixtures[cid-bafkreiebzrnroamgos2adnbpgw5apo3z4iishhbdx77gldnbk57d4zdio4]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+1%
12.1 µs11.9 µs

Commits

Click on a commit to change the comparison range
Base
main
d2eaf4d
+12.33%
Optimize int encode with direct PyLong digit read
87d86d2
1 month ago
by MarshalX
© 2026 CodSpeed Technology
Home Terms Privacy Docs