uv/scripts/benchmark
Charlie Marsh dd760ee507
Normalize platform_system to sys_platform (#9949)
## Summary

A revival of an old idea (#9344) that I have slightly more confidence in
now. I abandoned this idea because (1) it couldn't capture that, e.g.,
`platform_system == 'Windows' and sys_platform == 'foo'` (or some other
unknown value) are disjoint, and (2) I thought that Android returned
`"android"` for one of `sys_platform` or `platform_system`, which
would've made this logic incorrect.

However, it looks like Android... doesn't do that? And the values here
are almost always in a small, known set. So in the end, the tradeoffs
here actually seem pretty good.

Vis-a-vis our current solution, this can (e.g.) _simplify out_
expressions like `sys_platform == 'win32' or platform_system ==
'Windows'`.
2024-12-18 10:29:34 -05:00
..
src/benchmark Benchmarks: Add extras to poetry (#6247) 2024-08-20 14:41:07 +02:00
.python-version Move bench directory to benchmark (#5529) 2024-07-28 22:03:52 +00:00
pyproject.toml Minor improvements to benchmarking setup (#5843) 2024-08-06 23:47:45 +00:00
README.md Enable benchmarking of uv tool and pipx (#5531) 2024-07-28 23:27:14 +00:00
uv.lock Normalize platform_system to sys_platform (#9949) 2024-12-18 10:29:34 -05:00

benchmark

Benchmarking scripts for uv and other package management tools.

Getting Started

From the scripts/benchmark directory:

uv run resolver \
    --uv-pip \
    --poetry \
    --benchmark \
    resolve-cold \
    ../requirements/trio.in