Breadcrumbs: If you switch pkg from QUARTERLY to LATEST on 14.1, you can install the Python 3.11.9 runtime (and dependencies) without having to run 15.0 (CURRENT). My install of 14.1 defaults to 3.9 (and quarterly), perhaps they are getting ready to move 3.11 in the next release? Dunno.
There are no real tunables for scikit-learn in FreeBSD ports Makefile. It's just scipy and c++14.
@kta In addition to the Python version, look into the configuration options for all the applicable ports. Defaults on FreeBSD tend to prefer stability and compatibility over performance, whereas Linux platforms often lean the other way. If you install binary packages, then you are implicitly choosing those defaults.
Performance decreasing with increasing number of processors is often indicative of threading limitations.
There may also be platform tuning options with a similar impact.