You just add a PrecompileTools.jl compile workload. For example, see:
You can just stick one right at the bottom of this file:
Basically the function you have up there is good. Have it loop over the most common optimizers. Maybe do a version that covers constraints too. Then it should actually precompile stuff and we can see what we get.