[Lemon-devel] Optimization flags
Alpár Jüttner
alpar at cs.elte.hu
Tue Jan 23 12:22:03 CET 2007
On Mon, 2007-01-22 at 20:13 +0100, Alpár Jüttner wrote:
> Hi,
>
> I've made some comparison on the effect of gcc optimization flags. The
> test code is a graph algorithm implemented using LEMON (of course),
> compiled with gcc-4.1, the cpu is Intel T2500 (Core Duo).
> Here come the sizes of the executables, the compilation times and the
> running times of the algorithm with different optimization flags.
> There is no surprise in this table. I just post it to emphasize: *always
> use optimization!!!*
Well, the table seems to have been messed up a bit. I try to post it
again.
option: -O0 (default)
exec. size: 216K
compilation time: 1.8s
running time: 7m22s
option: -Os
exec. size: 116K
compilation time: 2.7s
running time: 2m43s
option: -O1
exec. size: 64K
compilation time: 2.8s
running time: 35.5s
option: -O2
exec. size: 64K
compilation time: 3.3s
running time: 27.7s
option: -O3
exec. size: 56K
compilation time: 3.4s
running time: 26.7s
option: -O3 -ggdb
exec. size: 561K
compilation time: 3.9s
running time: 26.8s
Alpar
More information about the Lemon-devel
mailing list