Whether or not I compile a Racket program seems to make no difference to the runtime performance.
Is it just the loading of the file initially that is improved by compilation? In other words, does running racket src.rkt
do a jit compilation on the fly, which is why I see no difference in compiling vs interactive?
Even for tight loops of integer arithmetic, where I thought some difference would occur, the profile times are equivalent whether or not I previously did a raco make
.
Am I missing something simple?
PS, I notice that I can run racket against the source file (.rkt
) or .zo
file. Does racket automatically use the .zo
if one is found that corresponds to the .rkt
file, or does the .zo
file need to be used explicitly? Either way, it makes no difference to the performance numbers I'm seeing.