mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00

First, replace all usages in files in-place. I used my editor for this. If someone wants to add a one-liner that'd be fun. Then, update directory and file names: ``` # Run twice for nested directories find . -type d -print0 | xargs -0 rename s/puffin/uv/g find . -type d -print0 | xargs -0 rename s/puffin/uv/g # Update files find . -type f -print0 | xargs -0 rename s/puffin/uv/g ``` Then add all the files again ``` # Add all the files again git add crates git add python/uv # This one needs a force-add git add -f crates/uv-trampoline ```
27 lines
748 B
Bash
Executable file
27 lines
748 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
###
|
|
# Benchmark the resolver against `pip-compile`.
|
|
#
|
|
# Example usage:
|
|
#
|
|
# ./scripts/benchmarks/compile.sh ./scripts/benchmarks/requirements.in
|
|
###
|
|
|
|
set -euxo pipefail
|
|
|
|
TARGET=${1}
|
|
|
|
###
|
|
# Resolution with a cold cache.
|
|
###
|
|
hyperfine --runs 20 --warmup 3 --prepare "rm -f /tmp/requirements.txt" \
|
|
"./target/release/uv --no-cache pip-compile ${TARGET} > /tmp/requirements.txt" \
|
|
"./target/release/main --no-cache pip-compile ${TARGET} > /tmp/requirements.txt"
|
|
|
|
###
|
|
# Resolution with a warm cache.
|
|
###
|
|
hyperfine --runs 20 --warmup 3 --prepare "rm -f /tmp/requirements.txt" \
|
|
"./target/release/uv pip compile ${TARGET} > /tmp/requirements.txt" \
|
|
"./target/release/main pip-compile ${TARGET} > /tmp/requirements.txt"
|