Save core_number_criterion.rs and core_number_uv.py in a directory outside the rustworkx checkout. Run these commands sequentially; the first runs download/build dependencies:
RAYON_NUM_THREADS=1 cargo +nightly -Zscript run --release --manifest-path core_number_criterion.rs -- --bench
RAYON_NUM_THREADS=1 uv run --no-project --python 3.12 --with rustworkx==0.18.1 core_number_uv.py --label release-0.18.1
RAYON_NUM_THREADS=1 uv run --no-project --python 3.12 --with 'rustworkx @ git+https://github.com/jeswr/rustworkx@b701414e060a94f60c8c59df429b6b4289308c25' core_number_uv.py --label pr-b701414