I have been watching a tutorial on Golang and am confused about how the programming languages compare in terms of execution and compilation time. From what I understand the compilation time refers to the time it takes for the source code to be translated into machine code. The execution time refers to the time it takes for the compiled machine code to run on the hardware. Correct me if my understanding is wrong.
Moving on, in the tutorial it is mentioned that languages such as C, C++, Java, Rust, and Go have a faster Execution speed than interpreted languages like python, JS, and Ruby. It also adds that the compilation speed of Golang is faster than C/C++, Java, Rust. Nevertheless, it says that the execution speed of Golang is slower than C/C++, Rust and more similar to Java. It ends with saying that the compilation speed of C is very slow due to the design of the language that focused on memory management at a time that computers did not have that much memory. However, in a lot of resources, I have found the opposite, meaning that C has a higher compilation speed than all languages. I have searched a lot of websites and still have the following questions:
1- comparison between the compilation speed of C/C++, Java, Rust
2- Why is Golang faster than C/C++, Java, and Rust in terms of Compilation speed?
Thanks in advance.