> Few notes on your results:
>
[quoted text clipped - 12 lines]
> it with HotSpot Server VM (java -server) and with other JVMs (BEA
> JRockit, Excelsior JET).
Denis,
My factorization applet ( http://www.alpertron.com.ar/ECM.HTM ) uses a
lot of array access and primitive types and very few objects. So this
is not a microbenchmark, but the measurement of a real bottleneck in
my application where I found that the Sun Java Plugin makes my applet
to run almost half as fast as the old Microsoft JVM.
Best regards,
Dario Alpern
Denis Gurchenkov - 27 Jul 2005 06:04 GMT
> Denis,
>
[quoted text clipped - 7 lines]
>
> Dario Alpern
Dario, I did not intend to harm you, neither I want to say that your
program is not Java :-)
You are quite right - on your benchmark, the Sun's JVM is very slow. I
just have run the "ecm.java", and it runs 4 times faster on MS JVM
compared to Sun's. However, fast speed of MS JVM is no magic: IBM Java
is even faster (on this bench), and other JVMs reside in the middle of
the range.
I just wanted to suggest a possible reason, why Sun's JVM is so slow.
This is not a secret that most money nowadays are in enterprise Java,
in the world of very big server-side applications, which run for days.
They are indeed different from your code. So, it may be that Sun
invests its performance-improvement efforts into speedup of enterprise
Java applications, but not into speedup of numeric, integer-based apps
as yours.
Perhaps, with introduction of the Fortress language Sun will invest
more into perofrmance of numeric applicaitons.
Denis.