Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/evalplus/evalplus
/ default_parallelism
Function
default_parallelism
evalplus/perf/profile.py:27–28 ·
view source on GitHub ↗
(divisor=4)
Source
from the content-addressed store, hash-verified
25
26
27
def
default_parallelism(divisor=4):
28
return
max(1, max(cpu_count(), get_max_ram_gb() // PERF_RAM_GB_PER_PROC) // divisor)
29
30
31
def
simple_test_profiler():
Callers
1
script
Function · 0.90
Calls
1
get_max_ram_gb
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…