mirror of
https://github.com/python/cpython.git
synced 2026-01-27 05:05:50 +00:00
gh-140381: Increase slow_fibonacci call frequency in test_profiling (#140673)
This commit is contained in:
parent
17636ba48c
commit
652c764a59
@ -414,8 +414,8 @@ def main_loop():
|
||||
if iteration % 3 == 0:
|
||||
# Very CPU intensive
|
||||
result = cpu_intensive_work()
|
||||
elif iteration % 5 == 0:
|
||||
# Expensive recursive operation
|
||||
elif iteration % 2 == 0:
|
||||
# Expensive recursive operation (increased frequency for slower machines)
|
||||
result = slow_fibonacci(12)
|
||||
else:
|
||||
# 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…
x
Reference in New Issue
Block a user