Re: [dev] [OT]: Go programming language

From: Tobias Ulmer <tobiasu_AT_tmux.org>
Date: Sun, 15 Nov 2009 14:54:23 +0100

On Sun, Nov 15, 2009 at 02:24:41PM +0100, frederic wrote:
> All this is more than just nit-picking. Pike claims a 10-20% loss
> compared to C, which would still be quite good. However, the first
> benchmarks tell another story at the moment:
> http://shootout.alioth.debian.org/u64/benchmark.php?test=all&lang=go

Be careful with this link, the results may be ok for higher level
languages with built-in datatypes, but they are not for low level
languages. One example i've looked at just yesterday demonstrates
this nicely:

http://shootout.alioth.debian.org/u64/benchmark.php?test=knucleotide&lang=all&box=1

The C version has a very generic (and for this problem set ineffective)
hash table implementation, while the C++ examples use every trick in
the book to make hashed lists for each of the different iterations to
get much better performance.

Take a look at the implementation before you draw any conclusion,
that's all.

Tobias
Received on Sun Nov 15 2009 - 13:54:23 UTC

This archive was generated by hypermail 2.2.0 : Sun Nov 15 2009 - 14:12:02 UTC