BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Eclipse for Spring
  2. MVVM Pattern
  3. Eclipse RCP
  4. Silverlight/WP7
  5. Eclipse Plug-ins
  1. BIRT 3.7
  2. Ajax
  3. Eclipse
  4. jQuery Selectors
  5. Spring Config.

Link Details

Give a link some love! Login and vote now.
Link 611593 thumbnail
User 811641 avatar

By dev.stonez
via yfrog.com
Published: Jun 03 2011 / 10:27

multi-language-bench: Benchmarks implemented in multiple languages C++/Java/Go/Scala http://code.google.com/p/multi-language-bench/ Loop Recognition: a compact benchmark in four programming languages C++/Java/Go/Scala https://days2011.scala-lang.org/sites/days2011/files/ws3-1-Hundt.pdf
  • 18
  • 8
  • 4505
  • 25

Comments

Add your comment
User 368023 avatar

yakkoh replied ago:

0 votes Vote down Vote up Reply

Intriguing -- please see the ws3-1-Hundt.pdf document for all the interesting details.
There is more than the run-time measurements: the LOC figures are also important.
The java timings are not acceptable. So indeed Java is slow.
Also disappointing is GO: it should be faster, and shorter.

User 171053 avatar

apolci replied ago:

1 votes Vote down Vote up Reply

The java implementation use Lists instead of arrays, I think this is the main cause of the difference in performance and if this is the case the benchmark is unfari.
The document says that they use Lists because java doesn't support generics arrays but I think this choice is questionable.
The usage of non-generics array is possible with the addition of a few explicit casts.

Arguing that Java IS slow with just this benchmark seem wrong to me.

User 393686 avatar

RawThinkTank replied ago:

-1 votes Vote down Vote up Reply

So what about the new parallel api in Scala ?

And i hope they compare Erlang, Scala and C++ OpenCL in concurrency performance

User 361292 avatar

AjaxSucks replied ago:

0 votes Vote down Vote up Reply

Good point, and I'd add that it's also questionable that they'd spend time "extensively tuning" the C++ version, while not even bothering to do a few casts w/arrays in Java. Detecting a hint of possible bias here...

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.