3c3 < # ▌ benchmark — a modern VPS benchmark --- > # ▌ benchmark — a modern Unix benchmark 443c443 < local tagline="the modern VPS benchmark" --- > local tagline="the modern Unix benchmark" 452a453 > [[ -n "${R_CPU_THREADS:-}" ]] && ctx+=" $G_SEP ${R_CPU_THREADS} threads" 580a582 > R_CPU_THREADS="" 623c625,626 < R_CPU_CORES=$(nproc 2>/dev/null || grep -c ^processor /proc/cpuinfo 2>/dev/null) --- > R_CPU_CORES=$(lscpu -p=core,socket 2>/dev/null | grep -v '^#' | sort -u | wc -l) > R_CPU_THREADS=$(lscpu -p=cpu 2>/dev/null | grep -v '^#' | wc -l) 673a677 > local thread_line="$C_TEXT$R_CPU_THREADS threads$RST" 676a681 > row "Threads" "$thread_line" 880c885 < command -v taskset >/dev/null 2>&1 && TASKSET=(taskset -c 0) --- > command -v taskset >/dev/null 2>&1 && taskset -c 0 true >/dev/null 2>&1 && TASKSET=(taskset -c 0) 898c903 < local cores=${R_CPU_CORES:-1} --- > local cores=${R_CPU_THREADS:-1} 1935a1941 > "threads": ${R_CPU_THREADS:-null},