Julia uses JIT compilation independent of whether or not you execute Julia at the command line or in the REPL or on a compute cluster.
Is it problematic to run your code once to compile and once more for performance? You can always compile your code using a tiny model or dataset and then run the compiled code on your complete dataset.
If you run on one node, then you can write a function (e.g. my_sim()
) containing all of your execution code, and then run your replications in serial as one scheduled job. The first call to my_sim()
compiles all of your code, and the subsequent calls run faster.
If you run on multiple nodes, then carefully consider how to distribute jobs; perhaps you can test your parameter settings in groups, and assign each group to its own node, and then do my_sim()
on each node.