Create an Account
username: password:
 
  MemeStreams Logo

Java theory and practice: Urban performance legends, revisited

search

Lost
Picture of Lost
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Lost's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
Java theory and practice: Urban performance legends, revisited
Topic: Technology 6:24 pm EDT, Oct  9, 2005

Pop quiz: Which language boasts faster raw allocation performance, the Java language, or C/C ? The answer may surprise you -- allocation in modern JVMs is far faster than the best performing malloc implementations. The common code path for new Object() in HotSpot 1.4.2 and later is approximately 10 machine instructions (data provided by Sun; see Resources), whereas the best performing malloc implementations in C require on average between 60 and 100 instructions per call (Detlefs, et. al.; see Resources). And allocation performance is not a trivial component of overall performance -- benchmarks show that many real-world C and C programs, such as Perl and Ghostscript, spend 20 to 30 percent of their total execution time in malloc and free -- far more than the allocation and garbage collection overhead of a healthy Java application (Zorn; see Resources).

Java theory and practice: Urban performance legends, revisited



 
 
Powered By Industrial Memetics
RSS2.0