So this is your main question
Question
Is it normal that the performance of executable compiled from gcc better than one compiled from LLVM?
Although an interesting but apparently a very broad question. Because compiler performance depends on a lot of factors.
- It depends heavily on your application.
- It depends on the underlying architecture and processor
- .........and many more factors
In addition to that, there are well established benchmarks to verify the compilers performance. With one application binary performing better is not the right benchmark and hence not an established result.
However, since application performance (program performance) is affected by the choice of the compiler, it completely makes sense that in your case you see GCC performance better than LLVM, however, it's not bound to happen always for every application.
For your further understanding, please check this: