It is expected for executable to take a longer time than simulation.
But you can try using linear solvers (fixed step solvers) to reduce the execution time of both, simulation and executable. It could help if most of the equations involved are fairly linear.