I am new to Julia and very exited to get into it. As part of learning, I am trying to use the @benchmark macro to see how I can optimize different aspects of Julia code, as well as the impact of for example = vs .=, etc. However, when using it in VSCode it doesn’t display anything. If it’s relevant, I am running Julia on the VSCode Terminal
It you are coming from another language make sure you don’t put a “;” at the end of the line. Also you can use ‘@btime’ which actually prints rather than relying on display
In the VSCode Julia extension settings there are options to toggle on whether you want outputs from such a process to be displayed in the REPL, maybe that’s it?
If your purpose is to time the execution of fft, then this is not the right way to do it. There’s no need for a loop, since @benchmark will run the code many times for you. Just do this: