Add a script to benchmark uninstalls (#78)
This commit is contained in:
Executable
+17
@@ -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}"
|
||||
Reference in New Issue
Block a user