feat: add thread count display for different OS in allocator benchmark scripts

This commit is contained in:
monosans
2026-04-30 19:55:38 +03:00
parent 791d88ac47
commit c4a793ce69
3 changed files with 9 additions and 0 deletions
+7
View File
@@ -88,6 +88,13 @@ done
{
echo "### ${PLATFORM_LABEL:-unknown} (tokio-multi-thread=${TOKIO_MULTI_THREAD:-false})"
if [[ "$RUNNER_OS" == "Linux" ]]; then
echo "Threads: $(nproc --all)"
elif [[ "$RUNNER_OS" == "macOS" ]]; then
echo "Threads: $(sysctl -n hw.logicalcpu)"
elif [[ "$RUNNER_OS" == "Windows" ]]; then
echo "Threads: $NUMBER_OF_PROCESSORS"
fi
echo ""
echo "| Allocator | Peak KB | Major PF | Minor PF |"
echo "| --- | ---: | ---: | ---: |"