What is the correct procedure to calculate ONLY the execution time of code not its embedded compilation time?

As far as I know that, using @time calculates the total time (compilation and execution). However, if I only need to calculate the execution time, what is the correct way to do that?

Call the function with the same arguments before in the same session.

1 Like

Thanks for your reply. So, there is no command in Julia instead?

using BenchmarkTools; @btime?


The official reference is this section of Performance tips in the manual for the record, although the information there has been presented here already.

1 Like