When we run the project with F9-Run, can we see the related compilation time in milliseconds in the messages section ?
Tools > Options > Environment > Messages Window: "Show FPC message lines compiled"
This includes the time, but not in millisecs, just 1 decimal after the seconds.
You can build the IDE with console.
- On Linux that is default, just start the IDE from a terminal.
- On Window: -WC
The output on the console: " compiler time in s: 4.855000320822"
(Note the console time may be bigger, as it includes launching fpc, and maybe other work)
For smaller projects there aren't too many options to speed up.
Obviously:
- disk speed.
- CPU: IPC for single core.
If you only compile the project, then there is little use of multicore. The IDE while waiting for fpc may use a diff core, but that makes no big diff.
If you have many packages, and the packages do NOT depend on each other, then packages can be compiled in parallel.
That is for example noticeable when you compile the IDE. (You can limit the threads in the options and compare)