Skip to content

Commit 2119f97

Browse files
authored
Set PYTHONHASHSEED for benchmark execution for getting stable numbers (#1202)
1 parent 6cfb40e commit 2119f97

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ jobs:
482482
run: python -Im pip install '${{ steps.wheel-file.outputs.path }}'
483483
- name: Run benchmarks
484484
uses: CodSpeedHQ/action@v3
485+
env:
486+
PYTHONHASHSEED: 42
485487
with:
486488
token: ${{ secrets.CODSPEED_TOKEN }}
487489
run: python -Im pytest --no-cov -vvvvv --codspeed

CHANGES/1202.contrib.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set up ``PYTHONHASHSEED`` for benchmarks execution to make measured times stable -- by :user:`asvetlov`.

0 commit comments

Comments
 (0)