Skip to content

Commit

Permalink
Add a script to benchmark uninstalls (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Oct 9, 2023
1 parent ba2b200 commit f03c605
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/benchmarks/uninstall.sh
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit f03c605

Please sign in to comment.