We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab94be2 commit 9b5bfa2Copy full SHA for 9b5bfa2
tests/test_parallel_leiden_performance.py
@@ -38,8 +38,7 @@ def determine_target_parallelization_speedup(num_calculations=32):
38
"""
39
global PERFORMANCE_TARGET_RELATIVE_TO_PERFECT_SCALING
40
41
- sleep(5) # sleep to increase stability of the CPU utilization check
42
- cpu_utilization = psutil.cpu_percent()
+ cpu_utilization = psutil.cpu_percent(interval=5)
43
if cpu_utilization > 20:
44
PERFORMANCE_TARGET_RELATIVE_TO_PERFECT_SCALING = 0.5
45
warnings.warn(f"System CPU utilization is non-negligible during parallel performance test! "
0 commit comments