[LLVMdev] FYI: Phoronix GCC vs. LLVM-GCC benchmarks

Stefano Delli Ponti
2009-09-16T13:46:20Z

Olivier Meurant:
> I have run the john the ripper test.
> I have used the official archive (same version as phoronix) from
> http://www.openwall.com/john/g/john-1.7.3.1.tar.bz2
>
> To build with llvm-gcc, replace the line CC = gcc with CC = llvm-gcc.
> I have used the following command to build : make clean linux-x86-sse2
> (seems to be the best on x86-32)
> The makefile invocation is "gcc -c -Wall -O2 -fomit-frame-pointer
> -funroll-loops src.c" and "llvm-gcc -c -Wall -O2
-fomit-frame-pointer
> -funroll-loops src.c".

I don't know what you think about this, but shouldn't it be more
meaningful to make these tests with -O3? I mean, we ought to make the
comparisons with the highest level of optimization available for both of
the compilers. It is difficult to compare an intermediate level.

Stefano