Avatar for the koxudaxi user
koxudaxi
datamodel-code-generator
BlogDocsChangelog

Refactor parser base post-processing for DRY and type-safe implementation

#2730Merged
Comparing
refactor/parser-base-post-processing
(
661dc23
) with
main
(
ae11c41
)
CodSpeed Performance Gauge
+1%
Untouched
70
Skipped
10

Benchmarks

80 total
test_main_jsonschema_reserved_field_name[dataclasses.dataclass-reserved_field_name_schema_dataclass.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+3%
30.4 ms29.5 ms
test_main_jsonschema_reserved_field_name[typing.TypedDict-reserved_field_name_schema_typed_dict.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+3%
29.7 ms28.8 ms
test_main_use_frozen_field[dataclasses.dataclass-use_frozen_field_dataclass.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+3%
34.8 ms33.9 ms
test_main_jsonschema_no_empty_collapsed_external_model
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+3%
34.2 ms33.3 ms
test_main_yaml
tests/main/test_main_yaml.py
CodSpeed Performance Gauge
+2%
35.4 ms34.5 ms
test_main_jsonschema_external_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
36.3 ms35.5 ms
test_main_type_alias_cycle_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
39 ms38.1 ms
test_main_keep_model_order_field_references
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
38 ms37.1 ms
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
39.4 ms38.6 ms
test_main_external_definitions
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
39.7 ms38.8 ms
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
+2%
41.7 ms40.8 ms
test_main_jsonschema_id
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
43 ms42.1 ms
test_main_use_frozen_field[pydantic.BaseModel-use_frozen_field_v1.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
47.5 ms46.6 ms
test_main_nested_lookaround_array_standard_collections
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
58.8 ms57.6 ms
test_main_lookaround_dict_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
54 ms53 ms
test_main_jsonschema_reserved_field_name[pydantic_v2.BaseModel-reserved_field_name_schema_pydantic.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
46.5 ms45.6 ms
test_main_jsonschema_required_and_any_of_required
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
48.4 ms47.5 ms
test_main_use_default_factory_for_optional_nested_models[msgspec.Struct-default_factory_nested_model_msgspec.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
58.3 ms57.3 ms
test_main_field_name_shadows_class_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
49.9 ms49.1 ms
test_main_type_alias_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
50.6 ms49.8 ms
test_main_use_frozen_field[pydantic_v2.BaseModel-use_frozen_field_v2.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
53.2 ms52.4 ms
test_main_jsonschema_field_include_all_keys
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
52.2 ms51.4 ms
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
52.7 ms51.8 ms
test_main_jsonschema_special_field_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+2%
53.8 ms52.9 ms
test_main_openapi_nullable_31
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
+2%
45.3 ms44.6 ms

Commits

Click on a commit to change the comparison range
Base
main
ae11c41
+1.43%
Refactor parser base post-processing for DRY and type-safe implementation
661dc23
4 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs