Skip to content

Commit 0e6c06f

Browse files
committed
gh-140381: Increase slow_fibonacci call frequency in test_profiling
1 parent e8b5cb8 commit 0e6c06f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_profiling/test_sampling_profiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,8 +1740,8 @@ def main_loop():
17401740
if iteration % 3 == 0:
17411741
# Very CPU intensive
17421742
result = cpu_intensive_work()
1743-
elif iteration % 5 == 0:
1744-
# Expensive recursive operation
1743+
elif iteration % 2 == 0:
1744+
# Expensive recursive operation (increased frequency for slower machines)
17451745
result = slow_fibonacci(12)
17461746
else:
17471747
# Medium operation

0 commit comments

Comments
 (0)