{"id":15150497,"url":"https://github.com/scikit-learn/pairwise-distances-reductions-asv-suite","last_synced_at":"2026-01-18T02:29:22.636Z","repository":{"id":65980060,"uuid":"574440072","full_name":"scikit-learn/pairwise-distances-reductions-asv-suite","owner":"scikit-learn","description":"A dedicated asv suite for scikit-learn private PairwiseDistancesReductions","archived":false,"fork":false,"pushed_at":"2023-01-26T12:27:55.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T09:06:43.761Z","etag":null,"topics":["asv","benchmarks","cython","scikit-learn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scikit-learn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-05T10:14:05.000Z","updated_at":"2023-02-02T15:25:20.000Z","dependencies_parsed_at":"2023-02-19T19:30:23.709Z","dependency_job_id":null,"html_url":"https://github.com/scikit-learn/pairwise-distances-reductions-asv-suite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scikit-learn%2Fpairwise-distances-reductions-asv-suite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scikit-learn%2Fpairwise-distances-reductions-asv-suite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scikit-learn%2Fpairwise-distances-reductions-asv-suite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scikit-learn%2Fpairwise-distances-reductions-asv-suite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scikit-learn","download_url":"https://codeload.github.com/scikit-learn/pairwise-distances-reductions-asv-suite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092373,"owners_count":20882217,"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":["asv","benchmarks","cython","scikit-learn"],"created_at":"2024-09-26T14:20:22.297Z","updated_at":"2026-01-18T02:29:22.609Z","avatar_url":"https://github.com/scikit-learn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASV Benchmark suite for `PairwiseDistancesReductions`\n\n## Context\n\n`PairwiseDistancesReductions` are Cython-based implementations of computational\nexpensive patterns in many scikit-learn's algorithms.\n\nIn order to be able to maintain those on the longer-term, maintainers, and authors and\nreviewers of Pull Requests suggesting changes need to be able\nto easily and confidently assess performance regressions between revisions.\n\nThis independent [`asv`](https://asv.readthedocs.io/en/stable/) benchmark suite is meant to help in this regards.\n\nFor more context, see:\n - https://github.com/scikit-learn/scikit-learn/pull/24120\n - https://github.com/scikit-learn/scikit-learn/issues/22587\n\n## Quick-start\n\nThis suite can be installed with:\n\n```commandline\ngit clone git@github.com:jjerphan/pairwise-distances-reductions-asv-suite.git \ncd pairwise-distances-reductions-asv-suite\npip install git+https://github.com/airspeed-velocity/asv\n```\n\nThis suite can be run with:\n\n```question\n# This might take a while (i.e several hours up to a day)\n# if all combinations are benchmarked.\nasv run\n```\n\nFor more precised run, see [`asv` commands' documentation](https://asv.readthedocs.io/en/stable/commands.html#asv-continuous).\n\n## Workflow plan\n\n### Needs\n\n#### Have a feedback of performance improvement of regression in timely manner when needed for a scikit-learn Pull Request\n\nIn particular:\n - have a GitHub actions workflow which would be triggerable by a comment\n - specify revisions to compare (forwarded to `asv continuous`)\n - be able to indicate configuration to run benchmarks for, in particular regarding\n the following parameters' values:\n   - `PairwiseDistancesReductions`\n   - `metric`\n   - format of `(X,Y)` (in `{sparse, dense}²`)\n - have the full, verbose, sorted, `asv` textual report\n\n#### Have an overview of performance with respect to theoretical ideal limit\n\nIn particular:\n - outputs graphs of hardware scalability\n - report estimate of sequential code proportion using Amdahl's law\n\n### Trace results overtime\n\n### Important notes\n\nBenchmark are correctly and entirely reproducible, traceable and reportable when the\nfollowing constraining requirements are met:\n - the same machine is used overtime: in practice, we can't expect CI providers to\n allocate the same machines over time, nor to dispatch to specifications-identical\n machines at a given time.\n - no other process that the benchmarks' are run on the machine: in practice, we can't\n expect CI providers to use process isolation\n - benchmarks definition aren't changed between revision: this requires not reformatting\n benchmarks' python code because asv hashes the content of the file to trace benchmark\n overtime","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscikit-learn%2Fpairwise-distances-reductions-asv-suite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscikit-learn%2Fpairwise-distances-reductions-asv-suite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscikit-learn%2Fpairwise-distances-reductions-asv-suite/lists"}