Skip to content

Commit

Permalink
Enable benchmarking of uv tool and pipx (#5531)
Browse files Browse the repository at this point in the history
## Summary

Closes #5263.
  • Loading branch information
charliermarsh authored Jul 28, 2024
1 parent 44a77a0 commit 3626d08
Show file tree
Hide file tree
Showing 8 changed files with 1,676 additions and 1,301 deletions.
4 changes: 2 additions & 2 deletions BENCHMARKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The benchmark script itself has a several requirements:
To benchmark resolution against pip-compile, Poetry, and PDM:

```shell
uv run benchmark \
uv run resolver \
--uv-pip \
--poetry \
--pdm \
Expand All @@ -80,7 +80,7 @@ uv run benchmark \
To benchmark installation against pip-sync, Poetry, and PDM:

```shell
uv run benchmark \
uv run resolver \
--uv-pip \
--poetry \
--pdm \
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ We provide diverse sets of requirements for testing and benchmarking the resolve
You can use `scripts/benchmark` to benchmark predefined workloads between uv versions and with other tools, e.g., from the `scripts/benchmark` directory:

```shell
uv run benchmark \
uv run resolver \
--uv-pip \
--poetry \
--benchmark \
Expand Down
2 changes: 1 addition & 1 deletion scripts/benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Benchmarking scripts for uv and other package management tools.
From the `scripts/benchmark` directory:

```shell
uv run benchmark \
uv run resolver \
--uv-pip \
--poetry \
--benchmark \
Expand Down
4 changes: 3 additions & 1 deletion scripts/benchmark/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ dependencies = [
"tomli",
"tomli_w",
"virtualenv",
"pipx",
]

[project.scripts]
benchmark = "benchmark:main"
resolver = "benchmark.resolver:main"
tools = "benchmark.tools:main"

[build-system]
requires = ["hatchling"]
Expand Down
Loading

0 comments on commit 3626d08

Please sign in to comment.