Performance Benchmarks¶
This page tracks datamodel-code-generator release and main-branch benchmark results collected on GitHub Actions. The data covers only datamodel-code-generator and uses Ubuntu runners so release-to-release changes can be compared without mixing in third-party generator results. Automatic backfills select versions from PyPI download-by-version data when that public dataset is available.
datamodel-code-generator supports many schema styles and production use cases, so it includes a broad set of useful options. As releases add more capabilities, these benchmarks help keep the implementation measured, managed, and tuned so code generation stays fast in everyday use.
Historical Trends¶
The benchmark data on this page is loaded from docs/data/release-benchmarks.json and rendered in the browser. Release runs update that JSON file directly, so the published page reflects new release measurements after the docs deployment without rewriting this Markdown file.
Loading benchmark data...
Collection Policy¶
- The benchmark workflow runs on
ubuntu-24.04. - Benchmark results are collected on GitHub Actions CI runners, so median timings can vary slightly with runner load and workflow timing; rerun benchmarks before treating small differences as regressions.
- The Python version is the workflow input, defaulting to the latest configured CI Python.
- Release packages are installed from PyPI in isolated virtual environments.
- The
mainsnapshot is installed from the GitHub repository when it is explicitly selected. - Input coverage currently focuses on OpenAPI and JSON Schema.
- Historical updates commit
docs/data/release-benchmarks.json; the page renders that JSON client-side.