Race uv against pip on a cold cache install
Same packages, same box, cold cache: pip took 7.07 seconds, uv took 0.50 seconds.
Originally posted · Published here , tested on Python 3.13.5, pip 25.1.1, uv 0.13.6 on Linux · 4 sources · Resume reading
Same packages, same box, cold cache: pip took 7.07 seconds, uv took 0.50 seconds. I ran this test on 2 November 2026 with Python 3.13.5, pip 25.1.1, and uv 0.13.6 on a single Linux box.
Install uv
The fastest way is the standalone installer [1]:
curl -LsSf https://astral.sh/uv/install.sh | shOr install it as a Python tool:
pipx install uvYou should see uv available on your path.
Use uv in place of pip
The pip interface supports common pip workflows, with differences documented in the compatibility guide [2][4]. Point it at your venv's Python:
uv pip install --python .venv/bin/python -r requirements.txtYou should see the packages installed into .venv. Measure the elapsed time on your own setup.
Race them yourself
Warning: the commands below delete and recreate the .venv folder. Run these in a disposable benchmark directory, not in an existing project with a venv you want to keep.
Create a fresh venv and time pip with no cache:
python3 -m venv .venv && time .venv/bin/pip install --no-cache-dir requests flask pandasRemove the venv and race uv:
rm -rf .venv
python3 -m venv .venv && time uv pip install --no-cache --python .venv/bin/python requests flask pandasRun each two or three times. In my test:
| Run | pip (s) | uv (s) | Ratio |
|---|---|---|---|
| 1 | 7.07 | 0.50 | 14.1x |
| 2 | 6.37 | 0.43 | 14.8x |
| 3 | 6.28 | 0.55 | 11.4x |
Your numbers will depend on your network and the packages you install. The point is to measure on your own setup.
What changed
The only difference between the pip and uv commands:
Before: .venv/bin/pip install --no-cache-dir requests flask pandas
After: uv pip install --no-cache --python .venv/bin/python requests flask pandasuv is free and open source under Apache 2.0 or MIT, developed by Astral [3].
Repeat the comparison with the packages you actually use.
Keep this guide
Filed under Dev tools
Questions about this guide
Does this result predict every install?
No. These timings cover the recorded packages on one Linux machine. Package selection, network conditions and cache state affect results.
Can I use uv as a drop-in replacement?
uv supports common pip workflows, but it does not implement every pip option or read pip configuration files. Check the compatibility guide before switching.
Sources
- uv installation docsdocs.astral.sh
- uv pip interface docsdocs.astral.sh
- uv repogithub.com
- uv pip compatibilitydocs.astral.sh
Next in this stack
Keyword DRAW
Add drawing, diagram and film skills to your agent
Keyword SELFFLOW
Compare Zapier, n8n and Activepieces
Keyword SHEETS
Choose five tools for working with spreadsheet data