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

Stefano Delli Ponti stefano.delliponti at gmail.com
Wed Sep 16 06:46:20 PDT 2009

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-
> 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.


More information about the llvm-dev mailing list