Hi everyone,
I’ve compiled an executable using crystal build script.cr --release
and noticing that it is slower the first time I run it. After the first run I get the performance I’m looking for. Is this behavior expected?
First run
real 0m0.661s
user 0m0.159s
sys 0m0.090s
Second run
real 0m0.083s
user 0m0.059s
sys 0m0.027s
I’ve done this rough testing and from the second run, the average time it takes to run is ~0m0.081s. Is this expected?