mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Add a script to benchmark uninstalls (#78)
This commit is contained in:
parent
ba2b200fce
commit
f03c605bde
1 changed files with 17 additions and 0 deletions
17
scripts/benchmarks/uninstall.sh
Executable file
17
scripts/benchmarks/uninstall.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
###
|
||||
# Benchmark the uninstall command against `pip`.
|
||||
#
|
||||
# Example usage:
|
||||
#
|
||||
# ./scripts/benchmarks/uninstall.sh numpy
|
||||
###
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
TARGET=${1}
|
||||
|
||||
hyperfine --runs 20 --warmup 3 --prepare "rm -rf .venv && virtualenv .venv && source activate .venv/bin/activate && pip install ${TARGET}" \
|
||||
"./target/release/puffin-cli uninstall ${TARGET}" \
|
||||
"pip uninstall -y ${TARGET}"
|
Loading…
Add table
Add a link
Reference in a new issue