gh-140381: Increase slow_fibonacci call frequency in test_profiling (#140673)

This commit is contained in:
Thierry Martos 2025-11-18 16:01:09 -08:00 committed by GitHub
parent 17636ba48c
commit 652c764a59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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.