I noticed, that SPEC was significantly slower when running from simsopt than standalone. Looking closer, the shared object Library produced when compiling spec_wrapper doesn't utilize the same compilation flags, e. g. -O3.
When running the initialization from the spec wrapper, the console output also indicates no compilation flags were passed.
: : fc = /usr/bin/mpifort ;
: : flags = ;
I think we should fix spec_wrapper/CmakeLists.txt to at least enable ftree-vectorize, such that xspec standalone and the Python bindings behave the same.