ENTRY

"Groovy is slow, java may be fast, second only to c++? Simple ‘java -server’ may do the trick?"

Date:March 7th, 2010
Tags:
Comments: 0
  • Join date: 11-30-99
  • Posts: 23
View Counter:
  • 62 views
Rate it
Ad
Poll
  • Who manages CI environment in your enterprise?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

I am working on some groovy code now. It is surely very flexible and easy to script language, it sets me free. I feel groovy with groovy, but… What is about groovy performance.

Now, here is a nice discussion in German forum which describes the performance of groovy as “catastrophic”.

groovy-forum

It leads to the comparison page for languages. I could not find where groovy is. But what i see is a big difference in normal java execution and -server java Hotspot execution…

fannkuch test for major languages

Hm… See, what SUN has to say on that subject: "The Java HotSpot Server VM is similar to the Java HotSpot Client VM, except that it has been specially tuned to maximize peak operating speed".

In fact, in "fannkuch" test, java -server is second only to GNU c++/gcc and “normal” java makes one of the SLOWEST runs in Test.

Overall Program Source Code CPU secs Elapsed secs
1.0 C GNU gcc #2 47.44 12.23
1.1 C++ GNU g++ #3 50.18 13.63
1.4 Java 6 steady state 64.49 17.60
Many other languages
15 Java 6 -Xint 11 min 184.20

Now, it may be not exact Test, or Test series, but i know how I will run my java code if I want it faster (fastest):

java -server MyApp

And sure, don’t forget to get the server hot spot, on windows it is not always there…

Be Sociable, Share!
 
Interesting entry?
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)
0 votes 'YES'  0 votes 'NO'


TAGS

RELATED
Pages
Posts

SOCIAL
Be Sociable, Share!

INCOMING SEARCH TERMS



Responces

Leave a Reply