which one is better,KAFFE or CDC CVM

Hi,all:

Anyone know which one runs faster on Redhat linux6.2,KAFFE or CDC.My tests show that KAFFE runs

faster than CDC CVM but I can't beliver it since KAFFE is free.I did the tests

as following.

First install KAFFE as following:

$./configrue --with-profiling --enable-xprofiling --with-staticvm --with-staticlib

$make

$make install

Second use kaffe to perform a java program like this:

$./kaffe -Xxprof test.java

Then two file named kaffe-jit-symbols.s and xgmon.out will be produced and the followwing steps were taken:

1.$as kaffe-jit-symbols.s -o kaffe-jit-symbols.o

2.$ld /usr/local/libexec/Kaffe kaffe-jit-symbols.o -o kaffe-jit-symbols

3.gprof kaffe-jit-symbols xgmon.out>test.kaffe.prof

The file test.kaffe.prof the time taken by kaffe to perform test.class

Now it comes to CDC CVM,I installed CDC CVM like this:(j2sdk1.3 was previously installed as required by CDC)

$/sbin/ifconfig eth0 allmulti

$/sbin/ifconfig lo allmuliti

$/sbin/route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0

$/sbin/route add -net 224.0.0.0 netmask 240.0.0.0 dev lo

$make GPROF=true CVM_DEBUG=true

Then perform test.class:

./cvm -Djava.class.path=./ test

A profile named gmon.out will be produced which inticated the same program test.class took CDC CVM more time to perform it.

Have you ever done the same kind of test and what's the result?I am eager to know your answer or you

opinion.By the way.kaffe's version:1.0.6,CDC CVM's version:1.0.

Thank you for sparing your time reading this post.

RGDS

[1671 byte] By [xuanyonghe] at [2007-9-26 4:17:11]
# 1

You can strip CVM binary to faster it's loading and improving performance.

Btw although kaffe is pretty well it's not so stable as CVM. Sometimes Kaffe gives strange errors where you don't expect. It seems that tha class library is little buggy.

CVM itself is very stable and behaves much better than Kaffe. About memory consumption CVM requires more memory (btw JDK 1.1.7 for Linux I think is more memory optimized).

This is my personal and not professional opinion, based on my previous experience with both VM.

v.pavlov at 2007-6-29 13:27:34 > top of Java-index,Archived Forums,Java Programming...
# 2
Dear Sir:Are you still online? Thank you for your reply first.But I'm eager to know which one runs faster ,KAFFE OR CDC,according to your experience.Thank you.Best RegardsSincely yoursHugh
xuanyonghe at 2007-6-29 13:27:34 > top of Java-index,Archived Forums,Java Programming...
# 3
I don't know whish is faster.Kaffe is not so stable and i DON'T use it and I suggest you to do the same if it is possible.By the way kaffe has verry fast JIT but I experienced more errors with JIT enabled rather than with Interpreter (which is slow)
v.pavlov at 2007-6-29 13:27:34 > top of Java-index,Archived Forums,Java Programming...