uv benchmarks

-- Source uv vs poetry
uv vs pyenv
- PyEnv install python version system wide.
- uv install localy (under the user).
| Tool | Executed in | CPU time |
|---|---|---|
| uv | 3.11 | 1.20 |
| pyenv | 94.40 | 343.14 |
In both cases, the values represent the average of two measurements, in seconds.
Benchmark
First, I attempted to install Python 3.8. This version had never been present on my system before.
$ time uvx --python 3.8 python -c 'print("Hello world")'
________________________________________________________
Executed in 3.34 secs fish external
usr time 1.19 secs 0.68 millis 1.19 secs
sys time 0.54 secs 1.38 millis 0.54 secs
$ uv python uninstall 3.8
Searching for Python versions matching: Python 3.8
Uninstalled Python 3.8.20 in 119ms
- cpython-3.8.20-linux-x86_64-gnu
$ time uvx --python 3.8 python -c 'print("Hello world")'
Hello world
________________________________________________________
Executed in 2.88 secs fish external
usr time 1.20 secs 0.02 millis 1.20 secs
sys time 0.51 secs 2.06 millis 0.50 secs