- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Google's Scala benchmarks...
My apologies as a first time poster, particularly if this topic has
already been discussed.
http://www.readwriteweb.com/hack/2011/06/cpp-go-java-scala-performance-b...
Considering that Scala is compiled to the JVM byte codes, a colleague
and I are debating the reasons for Scala's higher performance over
Java.
Would a Scala guru venture a quick analysis of this discrepancy?
BTW...I also found this to be an interesting Scala performance
link...http://brizzled.clapper.org/id/88/
Regards, Marc










Re: Google's Scala benchmarks...
--Rex
On Thu, Jun 9, 2011 at 10:21 AM, Marc Edwards <jmarcedwards [at] gmail [dot] com> wrote:
Re: Google's Scala benchmarks...
The optimized versions are too different to be able to pinpoint the gap in performance (at least for me).
Cheers
-- Martin
On Thu, Jun 9, 2011 at 4:41 PM, Rex Kerr <ichoran [at] gmail [dot] com> wrote:
--
----------------------------------------------
Martin Odersky
Prof., EPFL and CEO, Typesafe
PSED, 1015 Lausanne, Switzerland
Tel. EPFL: +41 21 693 6863
Tel. Typesafe: +41 21 691 4967
Re: Google's Scala benchmarks...
- Josh
On Thu, Jun 9, 2011 at 10:50 AM, martin odersky <martin [dot] odersky [at] epfl [dot] ch> wrote:
Re: Google's Scala benchmarks...
In other words, Scala spends 7699-2416-1 = 5282 clicks on
non-GC code. Java spends 14073-10484-110-2 = 3477 clicks
on non-GC code. Since GC has other negative performance
side-effects, one could estimate that without the GC anomaly,
Java would be about roughly 30% faster than Scala.
So they seem to have fingered garbage collection for the unoptimized versions. The ArrayList thing may be part of the reason why Java had a heavier GC load, however.
--Rex
On Thu, Jun 9, 2011 at 10:50 AM, martin odersky <martin [dot] odersky [at] epfl [dot] ch> wrote:
Re: Google's Scala benchmarks...
On Thursday June 9 2011, Marc Edwards wrote:
> My apologies as a first time poster, particularly if this topic has
> already been discussed.
>
> http://www.readwriteweb.com/hack/2011/06/cpp-go-java-scala-performanc
>e-benchmark.php
>
> Considering that Scala is compiled to the JVM byte codes, a colleague
> and I are debating the reasons for Scala's higher performance over
> Java.
>
> Would a Scala guru venture a quick analysis of this discrepancy?
>
> BTW...I also found this to be an interesting Scala performance
> link...http://brizzled.clapper.org/id/88/
>
> Regards, Marc
I think we'd all like to see what explains those numbers!
Randall Schulz