File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,20 +65,20 @@ python setup.py build_ext --inplace
6565```
6666
6767### 2. Run Benchmarks
68- Run the benchmark suite using ` pytest-benchmark ` :
68+ Run the benchmark suite using ` pytest-benchmark ` . We recommend disabling timeouts to allow sufficient warmup time :
6969``` bash
70- pytest benchmarks/
70+ pytest -o " python_files=bench_*.py " --timeout=0 benchmarks/
7171```
7272
7373### 3. Compare with Python
7474You can force the use of the Pure Python implementation by setting ` REDUX_FORCE_PYTHON=1 ` . This allows you to verify the performance gains directly.
7575
7676``` bash
7777# Run Python Baseline
78- REDUX_FORCE_PYTHON=1 pytest benchmarks/ --benchmark-json=baseline.json
78+ REDUX_FORCE_PYTHON=1 pytest -o " python_files=bench_*.py " --timeout=0 benchmarks/ --benchmark-json=baseline.json
7979
8080# Run Cython Optimized
81- pytest benchmarks/ --benchmark-json=optimized.json
81+ pytest -o " python_files=bench_*.py " --timeout=0 benchmarks/ --benchmark-json=optimized.json
8282
8383# Compare
8484pytest-benchmark compare baseline.json optimized.json
You can’t perform that action at this time.
0 commit comments