MarshalX / python-libipld

🏎️ Fast Python library to work with IPLD: DAG-CBOR, CID, CAR, multibase
https://pypi.org/project/libipld/
MIT License
17 stars 2 forks source link

Improve work with numbers #25

Closed MarshalX closed 8 months ago

codspeed-hq[bot] commented 8 months ago

CodSpeed Performance Report

Merging #25 will degrade performances by 23.73%

Comparing improve-numbers (67bb3a4) with main (6af9137)

Summary

⚡ 5 improvements ❌ 9 (👁 9) regressions ✅ 178 untouched benchmarks

Benchmarks breakdown

Benchmark main improve-numbers Change
👁 test_dag_cbor_decode[roundtrip01.json] 26.2 µs 33.7 µs -22.21%
👁 test_dag_cbor_decode[roundtrip02.json] 26.2 µs 33.6 µs -22.1%
👁 test_dag_cbor_decode[roundtrip06.json] 24.1 µs 31.6 µs -23.73%
test_dag_cbor_decode[roundtrip07.json] 31.4 µs 24 µs +31.25%
👁 test_dag_cbor_decode[roundtrip08.json] 29.4 µs 34.3 µs -14.28%
test_dag_cbor_decode[roundtrip12.json] 37 µs 28.8 µs +28.5%
👁 test_dag_cbor_decode[roundtrip16.json] 29.5 µs 36.3 µs -18.74%
👁 test_dag_cbor_decode[roundtrip19.json] 29.4 µs 37.4 µs -21.37%
👁 test_dag_cbor_decode[roundtrip20.json] 27.5 µs 34.6 µs -20.6%
👁 test_dag_cbor_decode[roundtrip22.json] 28.4 µs 37.1 µs -23.56%
👁 test_dag_cbor_decode[roundtrip24.json] 27.4 µs 34.6 µs -20.83%
test_dag_cbor_decode_fixtures[array-3,4,5,6] 35.5 µs 30.9 µs +14.85%
test_dag_cbor_decode_fixtures[array-mixed] 62.9 µs 56.5 µs +11.24%
test_dag_cbor_decode_fixtures[map-keysort] 83.3 µs 74.2 µs +12.2%