mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-140381: Increase slow_fibonacci call frequency in test_profiling (#140673)
This commit is contained in:
parent
17636ba48c
commit
652c764a59
2 changed files with 3 additions and 2 deletions
|
|
@ -414,8 +414,8 @@ def main_loop():
|
||||||
if iteration % 3 == 0:
|
if iteration % 3 == 0:
|
||||||
# Very CPU intensive
|
# Very CPU intensive
|
||||||
result = cpu_intensive_work()
|
result = cpu_intensive_work()
|
||||||
elif iteration % 5 == 0:
|
elif iteration % 2 == 0:
|
||||||
# Expensive recursive operation
|
# Expensive recursive operation (increased frequency for slower machines)
|
||||||
result = slow_fibonacci(12)
|
result = slow_fibonacci(12)
|
||||||
else:
|
else:
|
||||||
# Medium operation
|
# Medium operation
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Fix flaky test_profiling tests on i686 and s390x architectures by increasing slow_fibonacci call frequency from every 5th iteration to every 2nd iteration.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue