I've a 4GB Dual Core with linux.
Java: 1.6.0_0; OpenJDK 64-Bit Server VM 14.0-b08
.Net: Mono 2.0
I tried to create a LinkedList of a "foo" clas with 2 string properties (name and surname)
A 1000000 objects: Mono is faster (about 10 times faster) than Java.
a 3000000 objects: Mono takes about 5 seconds... Java crashes.
CPU was use in Java was 100%,25% aprox.
CPU used by Mono version whas 100%,4% aprox.
Sorry but... I'm thinking about forgeting my actual server java implementation and migrate to Mono (with MonoDevelop).
The sample code (The c# code is the java with same variation... not using c# 3.0 style coding for class creation)
List lst = new List ();
for(int i=0;i size;i++) {
tmp = new cTest();
tmp.Name="Andres" + i.ToString();
tmp.Surname="Iniesta" + i.ToString();
lst.Add( tmp );
}
The java version:
cTest tmp;
List lst = new LinkedList ();
for(int i=0;i3000000;i++) {
tmp = new cTest();
tmp.setName("Andres" + String.valueOf(i));
tmp.setSurname("Iniesta" + String.valueOf(i));
lst.add( tmp);
}

































