BlogDocs

Fix DAG-CBOR map keys order for encoding and decoding(#18)

Merged
Comparing
fix-map-keys-order
(
e2d9155
) with
main
(
10e190d
)
+33%
IMPROVEMENTS
3
REGRESSIONS
0
UNTOUCHED
59
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Improved

test_dag_cbor_encode_real_data[twitter.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode_real_data[twitter.json]
+33%
10.6 ms
7.9 ms
test_dag_cbor_encode_real_data[citm_catalog.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode_real_data[citm_catalog.json]
+26%
30.3 ms
24 ms
test_dag_cbor_encode_real_data[github.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode_real_data[github.json]
+19%
1.2 ms
1 ms

Passed

test_dag_cbor_decode[roundtrip22.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip22.json]
+3%
20.2 µs
19.7 µs
test_dag_cbor_decode[roundtrip07.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip07.json]
+2%
17.6 µs
17.3 µs
test_dag_cbor_decode[roundtrip03.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip03.json]
+1%
19 µs
18.7 µs
test_dag_cbor_decode[roundtrip23.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip23.json]
+1%
19.8 µs
19.6 µs
test_dag_cbor_encode[roundtrip03.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip03.json]
+1%
24.7 µs
24.4 µs
test_dag_cbor_encode[roundtrip02.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip02.json]
+1%
18.7 µs
18.6 µs
test_dag_cbor_decode_real_data[citm_catalog.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode_real_data[citm_catalog.json]
+1%
39.5 ms
39.2 ms
test_dag_cbor_decode[roundtrip21.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip21.json]
+1%
19.8 µs
19.6 µs
test_dag_cbor_encode[roundtrip13.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip13.json]
+1%
19.4 µs
19.2 µs
test_dag_cbor_decode[roundtrip25.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip25.json]
+1%
19.7 µs
19.6 µs
test_dag_cbor_decode[roundtrip15.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip15.json]
+1%
19.9 µs
19.8 µs
test_dag_cbor_decode[roundtrip18.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip18.json]
+1%
20.8 µs
20.7 µs
test_dag_cbor_encode[roundtrip22.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip22.json]
+1%
18.6 µs
18.5 µs
test_dag_cbor_encode[roundtrip01.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip01.json]
+1%
18.5 µs
18.4 µs
test_dag_cbor_encode[roundtrip24.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip24.json]
+1%
18.7 µs
18.6 µs
test_dag_cbor_encode[roundtrip27.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip27.json]
0%
18.6 µs
18.6 µs
test_dag_cbor_encode[roundtrip14.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip14.json]
0%
19.2 µs
19.2 µs
test_dag_cbor_encode[roundtrip08.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip08.json]
0%
19.2 µs
19.2 µs
test_dag_cbor_encode[roundtrip06.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip06.json]
0%
17.3 µs
17.3 µs
test_dag_cbor_decode_real_data[canada.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode_real_data[canada.json]
0%
88.2 ms
88.2 ms
test_dag_cbor_encode[roundtrip12.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip12.json]
0%
19.2 µs
19.3 µs
test_dag_cbor_encode_real_data[canada.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode_real_data[canada.json]
0%
22.7 ms
22.8 ms
test_dag_cbor_encode[roundtrip26.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip26.json]
0%
18.7 µs
18.7 µs
test_dag_cbor_encode[roundtrip11.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip11.json]
0%
19.9 µs
20 µs
test_dag_cbor_encode[roundtrip16.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip16.json]
0%
19.1 µs
19.2 µs
test_dag_cbor_encode[roundtrip04.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip04.json]
0%
18.9 µs
19 µs
test_dag_cbor_encode[roundtrip20.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip20.json]
0%
18.5 µs
18.6 µs
test_dag_cbor_decode_real_data[twitter.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode_real_data[twitter.json]
-1%
17.4 ms
17.5 ms
test_dag_cbor_encode[roundtrip05.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip05.json]
-1%
22.4 µs
22.6 µs
test_dag_cbor_encode[roundtrip10.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip10.json]
-1%
26.2 µs
26.5 µs
test_dag_cbor_encode[roundtrip09.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip09.json]
-1%
26.6 µs
26.8 µs
test_dag_cbor_decode[roundtrip01.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip01.json]
-2%
18.3 µs
18.6 µs
test_dag_cbor_decode_real_data[github.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode_real_data[github.json]
-2%
1.7 ms
1.8 ms
test_dag_cbor_decode[roundtrip02.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip02.json]
-2%
18.3 µs
18.8 µs
test_dag_cbor_decode[roundtrip05.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip05.json]
-3%
20.4 µs
21 µs
test_dag_cbor_decode[roundtrip08.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip08.json]
-3%
19.5 µs
20 µs
test_dag_cbor_decode[roundtrip16.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip16.json]
-3%
20.1 µs
20.6 µs
test_dag_cbor_encode[roundtrip23.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip23.json]
-3%
19.4 µs
20 µs
test_dag_cbor_decode[roundtrip12.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip12.json]
-3%
20.3 µs
20.9 µs
test_dag_cbor_decode[roundtrip17.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip17.json]
-3%
20 µs
20.6 µs
test_dag_cbor_decode[roundtrip04.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip04.json]
-3%
19 µs
19.6 µs
test_dag_cbor_decode[roundtrip13.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip13.json]
-3%
20.2 µs
20.8 µs
test_dag_cbor_decode[roundtrip19.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip19.json]
-3%
20.1 µs
20.7 µs
test_dag_cbor_decode[roundtrip10.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip10.json]
-3%
23.2 µs
23.9 µs
test_dag_cbor_decode[roundtrip11.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip11.json]
-3%
19.2 µs
19.8 µs
test_dag_cbor_encode[roundtrip18.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip18.json]
-3%
18.4 µs
19.1 µs
test_dag_cbor_decode[roundtrip14.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip14.json]
-3%
20.2 µs
20.9 µs
test_dag_cbor_encode[roundtrip07.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip07.json]
-3%
18.8 µs
19.5 µs
test_dag_cbor_decode[roundtrip26.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip26.json]
-3%
19 µs
19.7 µs
test_dag_cbor_decode[roundtrip24.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip24.json]
-4%
18.9 µs
19.7 µs
test_dag_cbor_decode[roundtrip06.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip06.json]
-4%
16.9 µs
17.6 µs
test_dag_cbor_encode[roundtrip15.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip15.json]
-4%
18.3 µs
19 µs
test_dag_cbor_decode[roundtrip20.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip20.json]
-6%
19 µs
20.2 µs
test_dag_cbor_decode[roundtrip09.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip09.json]
-6%
22.3 µs
23.7 µs
test_dag_cbor_decode[roundtrip27.json]
pytests/test_dag_cbor.py::test_dag_cbor_decode[roundtrip27.json]
-6%
19 µs
20.2 µs
test_dag_cbor_encode[roundtrip25.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip25.json]
-7%
18.6 µs
20 µs
test_dag_cbor_encode[roundtrip17.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip17.json]
-7%
18.4 µs
19.8 µs
test_dag_cbor_encode[roundtrip21.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip21.json]
-7%
17.9 µs
19.2 µs
test_dag_cbor_encode[roundtrip19.json]
pytests/test_dag_cbor.py::test_dag_cbor_encode[roundtrip19.json]
-7%
18.3 µs
19.7 µs

Commits

Click on a commit to change the comparison range
base
main
10e190d
+33%
Fix DAG-CBOR map keys order for encoding and decoding
e2d9155
9 months ago
by MarshalX
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.