Skip to content

Commit 9b2e69a

Browse files
committed
Update benchmark instructions for GIL conversion to include specific parameters for serial and parallel runs
1 parent 738a6f9 commit 9b2e69a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/source/user-guide/dataframe/collect-gil.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ A simple benchmark is provided in `benchmarks/collect_gil_bench.py`.
3636
Run it twice to compare serial and parallel conversions:
3737

3838
```bash
39-
RAYON_NUM_THREADS=1 python benchmarks/collect_gil_bench.py # serial
40-
python benchmarks/collect_gil_bench.py # parallel
39+
RAYON_NUM_THREADS=1 python benchmarks/collect_gil_bench.py --batches 20 --partitions 8 --workload all # serial
40+
RAYON_NUM_THREADS=8 python benchmarks/collect_gil_bench.py --batches 20 --partitions 8 --workload all # parallel
4141
```
42-
43-
On this container, collecting 128 1 M‑row batches took around 1.5 s with
44-
`RAYON_NUM_THREADS=1` and 0.8 s with the default thread pool, demonstrating
45-
that releasing the GIL allows conversions to run in parallel.

0 commit comments

Comments
 (0)