BlogDocs

Removed the unnecessary string allocation(#107)

Merged
Comparing
speedup-load-dataclass
(
d2f97b3
) with
master
(
4e35f95
)
+13%
IMPROVEMENTS
2
REGRESSIONS
0
UNTOUCHED
26
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Improved

test_load_recursive
bench/test_encoders.py::test_load_recursive
+13%
3.5 ms
3.1 ms
test_load_dataclass
bench/test_encoders.py::test_load_dataclass
+10%
1.7 ms
1.6 ms

Passed

test_load_validate
bench/test_full.py::test_load_validate
+9%
97.6 ms
89.5 ms
test_dump_date
bench/test_encoders.py::test_dump_date
+1%
2.3 ms
2.3 ms
test_dump_enum
bench/test_encoders.py::test_dump_enum
+1%
1.3 ms
1.3 ms
test_dump_datetime
bench/test_encoders.py::test_dump_datetime
0%
3.8 ms
3.7 ms
test_dump_recursive
bench/test_encoders.py::test_dump_recursive
0%
1.8 ms
1.8 ms
test_dump_time
bench/test_encoders.py::test_dump_time
0%
2.7 ms
2.7 ms
test_load_tuple_simple_types
bench/test_encoders.py::test_load_tuple_simple_types
0%
939.9 µs
938.4 µs
test_load_datetime
bench/test_encoders.py::test_load_datetime
0%
945.5 µs
944.8 µs
test_dump_uuid
bench/test_encoders.py::test_dump_uuid
0%
3.8 ms
3.8 ms
test_dump_simple_types
bench/test_encoders.py::test_dump_simple_types
0%
664 µs
663.7 µs
test_dump_list_simple_types
bench/test_encoders.py::test_dump_list_simple_types
0%
26.6 ms
26.5 ms
test_load_list_simple_types
bench/test_encoders.py::test_load_list_simple_types
0%
44.1 ms
44.1 ms
test_dump_dataclass
bench/test_encoders.py::test_dump_dataclass
0%
1.1 ms
1.1 ms
test_dump_decimal
bench/test_encoders.py::test_dump_decimal
0%
977.7 µs
977.5 µs
test_dump
bench/test_full.py::test_dump
0%
64.1 ms
64.1 ms
test_load_date
bench/test_encoders.py::test_load_date
0%
843.7 µs
843.6 µs
test_load_time
bench/test_encoders.py::test_load_time
0%
885.6 µs
885.6 µs
test_load_simple_types
bench/test_encoders.py::test_load_simple_types
0%
677.5 µs
677.6 µs
test_load_dict_simple_types
bench/test_encoders.py::test_load_dict_simple_types
0%
27.9 ms
27.9 ms
test_dump_dict_simple_types
bench/test_encoders.py::test_dump_dict_simple_types
0%
237.2 ms
237.3 ms
test_dump_tuple_simple_types
bench/test_encoders.py::test_dump_tuple_simple_types
0%
994.3 µs
995.2 µs
test_load_uuid
bench/test_encoders.py::test_load_uuid
0%
5.7 ms
5.7 ms
test_load_decimal
bench/test_encoders.py::test_load_decimal
0%
1.5 ms
1.5 ms
test_dump_optional
bench/test_encoders.py::test_dump_optional
0%
19.7 µs
19.8 µs
test_load_optional
bench/test_encoders.py::test_load_optional
-1%
19.7 µs
19.9 µs
test_load_enum
bench/test_encoders.py::test_load_enum
-1%
2.6 ms
2.6 ms

Commits

Click on a commit to change the comparison range
base
master
4e35f95
+13%
Removed the unnecessary string allocation
d2f97b3
1 year ago
by ermakov-oleg
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.