2023-10-09 16:59:15 -04:00
|
|
|
#!/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}" \
|
2024-02-15 11:19:46 -06:00
|
|
|
"./target/release/uv uninstall ${TARGET}" \
|
2023-10-09 16:59:15 -04:00
|
|
|
"pip uninstall -y ${TARGET}"
|