First execution of executable has a delay

I'm on Ventura 13.0

Whenever I compile a program (e.g. c++) and run it for the first time it has a delay. The subsequent runs don't have that delay.

For example:

fryderykkogl@Fryderyks-MacBook-Pro Step1 % g++ main.cxx   
fryderykkogl@Fryderyks-MacBook-Pro Step1 % time ./a.out 
./a.out  0.00s user 0.00s system 1% cpu 0.321 total
fryderykkogl@Fryderyks-MacBook-Pro Step1 % time ./a.out
./a.out  0.00s user 0.00s system 58% cpu 0.005 total

Why is this happening and how can this delay be 'turned off'?

First execution of executable has a delay
 
 
Q