In both cases all output comes in one fast go.
That is odd.
Afaik the "Free Pascal Compiler version 3.0.4 [2017/10/03] for x86_64 / Copyright (c) 1993-2017 by Florian Klaempfl and others" gets printed even before compilation starts.
This would either mean, that your OS takes 10 seconds to load the compiler, or that the output is buffered somewhere (if so, what kind of terminal?). You should know the difference by watching top, and seeing which programs are running at which time.
Also - but I am not sure about that interpretation - in the 10 sec version, both user and sys time are low. So my understanding is, that nothing used the cpu, and there indeed is some other hold up.