{"id":14972580,"url":"https://github.com/django/django-asv","last_synced_at":"2025-05-08T21:44:03.779Z","repository":{"id":37008337,"uuid":"326437422","full_name":"django/django-asv","owner":"django","description":"Benchmarks for Django using asv","archived":false,"fork":false,"pushed_at":"2025-05-08T00:33:16.000Z","size":120748,"stargazers_count":42,"open_issues_count":12,"forks_count":16,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-08T21:43:41.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/django.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-03T15:23:31.000Z","updated_at":"2025-05-08T00:31:56.000Z","dependencies_parsed_at":"2025-05-03T01:35:50.243Z","dependency_job_id":null,"html_url":"https://github.com/django/django-asv","commit_stats":{"total_commits":767,"total_committers":9,"mean_commits":85.22222222222223,"dds":"0.11082138200782266","last_synced_commit":"e959c3fa91edee7190f21a6e85600b31e1386e5f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django%2Fdjango-asv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django%2Fdjango-asv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django%2Fdjango-asv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django%2Fdjango-asv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/django","download_url":"https://codeload.github.com/django/django-asv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253153976,"owners_count":21862439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T13:47:09.575Z","updated_at":"2025-05-08T21:44:03.759Z","avatar_url":"https://github.com/django.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Django ASV**\n\nThis repository contains the benchmarks for measuring Django's performance over time.\n\nThe benchmarking process is carried out by the benchmarking tool [airspeed velocity](https://asv.readthedocs.io/en/stable/) and the results can be viewed [here](https://django.github.io/django-asv/)\n\n## **Running the benchmarks**\n---\n\n### **If you have installed Anaconda or miniconda**\n\n`Conda` is being used to run the benchmarks against different versions of python\n\nIf you already have conda or miniconda installed,you can run the benchmarks by using the commands\n\n```\npip install asv\nasv run\n```\n\nto run the benchmarks against the latest commit.\n\n\n### **If you have not installed Anaconda or miniconda**\n\n\nIf you do not have conda or miniconda installed, change the contents of the file `asv.conf.json` as follows to use `virutalenv` to run the benchmarks\n\n```json\n{\n    \"version\": 1,\n    \"project\": \"Django\",\n    \"project_url\": \"https://www.djangoproject.com/\",\n    \"repo\": \"https://github.com/django/django.git\",\n    \"branches\": [\"main\"],\n    \"environment_type\": \"virtualenv\",\n    \"show_commit_url\": \"http://github.com/django/django/commit/\",\n}\n```\n\nand run the benchmarks using the commands\n\n```\npip install asv\nasv run\n```\n\n**Note**: `ASV` prompts you to set a machine name on the first run, please do not set it to 'ubuntu-22.04', 'windows-2022' or 'macos-12' as the results for the machines with these names are currently being stored in the repository\n\n## **Comparing Benchmarks Results Of Different Commits Or Branches**\n---\n\nBenchmarking results of differnt branches can be compared using the following method\n\n```\nasv run \u003ccommit1 SHA or branch1 name\u003e\nasv run \u003ccommit2 SHA or branch2 name\u003e\nasv compare \u003ccommit1 SHA or branch name\u003e \u003ccommit2 SHA or branch name\u003e\n```\n\n## **Writing New Benchmarks And Contributing**\n---\n\n- Fork this repository and create a new branch\n- Install `pre-commit` and run `pre-commit install` to install pre-commit hooks which will be used to format the code\n- Create a new directory with the name `benchmark_name` under the appropriate category of benchmarks\n- Add the files `__init__.py` and `benchmark.py` to the directory\n- Add the directory to the list of `INSTALLLED_APPS` in settings.py\n- Use the following format to write your benchmark in the file `benchmark.py`\n\n    ```python\n        from ...utils import bench_setup()\n\n        class BenchmarkClass:\n\n            def setup():\n                bench_setup()\n                # if your benchmark makes use of models then use\n                # bench_setup(migrate=True)\n                ...\n\n            def time_benchmark_name():\n                ...\n    ```\n- Commit changes and create a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango%2Fdjango-asv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjango%2Fdjango-asv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango%2Fdjango-asv/lists"}