[LLVMdev] Performance vs other VMs
pmeredit at uiuc.edu
Sun Feb 1 00:47:11 CST 2009
Here is a run of scimark2 with verbose GC enabled. You'll see that
there are two garbage collection cycles for a total of around .003
seconds of time.
It should also be noted that these GCs happened before the timer
starts running. There is almost no dynamic memory allocation in this
code. Modern garbage collectors
are also very efficient (sometimes better than hand deallocation).
java -verbose:gc jnt/scimark2/commandline
[GC 511K->202K(1984K), 0.0018845 secs]
[GC 714K->415K(1984K), 0.0015513 secs]
Composite Score: 327.3062235870194
FFT (1024): 127.42845375506063
SOR (100x100): 677.3128255261597
Monte Carlo : 29.4337095721763
Sparse matmult (N=1000, nz=5000): 300.2107071278524
LU (100x100): 502.14542195384803
java.vendor: Apple Inc.
os.name: Mac OS X
On Jan 31, 2009, at 11:25 PM, Ramón García wrote:
> This is not a quite fair comparison. Other virtual machines must be
> doing garbage collection, while LLVM, as it is using C code, it is
> taking advantage of memory allocation by hand.
> On Fri, Jan 30, 2009 at 9:56 PM, Jon Harrop <jon at ffconsultancy.com>
>> The release of a new code generator in Mono 2.2 prompted me to
>> benchmark the
>> performance of various VMs using the SciMark2 benchmark on an 8x
>> 64-bit Opteron and I have published the results here:
>> The LLVM results were generated using llvm-gcc 4.2.1 on the C
>> version of
>> SciMark2 with the following command-line options:
>> llvm-gcc -Wall -lm -O2 -funroll-loops *.c -o scimark2
>> Mono was up to 12x slower than LLVM before and is now only 2.2x
>> slower on
>> average. Interestingly, the JVM scores slightly higher than LLVM on
>> benchmark on average and beats LLVM on two of the five individual
>> The individual scores are particularly enlightening. Specifically:
>> . LLVM outperforms all other VMs by a significant margin on FFT,
>> Monte Carlo
>> and sparse matrix multiply.
>> . LLVM is beaten by the JVM on successive over-relaxation (SOR) and
>> In the context of the SOR test, I suspect the JVM is using alias
>> to perform optimizations that LLVM and llvm-gcc probably do not do.
>> I am not sure what causes the performance discrepancy on LU.
>> Perhaps the JVM
>> is generating SSE instructions. Does llvm-gcc generate SSE
>> instructions under
>> any circumstances?
>> Dr Jon Harrop, Flying Frog Consultancy Ltd.
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev