Actions

Difference between revisions of "Programming language shootout"

From Gambit wiki

(add unimplemented alioth benchmarks)
(Specify a good configuration for target machine.)
 
Line 2: Line 2:
  
 
Here are implementations for some programs from the [http://shootout.alioth.debian.org/ Computer Language Benchmarks Game] for Gambit.
 
Here are implementations for some programs from the [http://shootout.alioth.debian.org/ Computer Language Benchmarks Game] for Gambit.
 +
 +
Running [[Programming language shootout: k-nucleotide|k-nucleotide.scm]]  with the largest data set creates a string of length 5,000,000. With four-byte characters (Gambit's default) this is 20,000,000 byte object, and the largest object that can be created in a 32-bit system is a bit less than 16MB. So, either configure Gambit with --enable-char-size=1 (or 2) or use a 64-bit version of Gambit.
 +
 +
The suggested build and install procedure for Gambit on the Computer Language Benchmarks Game machine is
 +
<pre>
 +
./configure CC='gcc -march=pentium4 -mfpmath=sse -msse2' --enable-single-host --enable-char-size=1
 +
make
 +
make install
 +
</pre>
 +
This installs Gambit in <tt>/usr/local/Gambit-C</tt>, and the binaries <tt>gsi</tt> and <tt>gsc</tt> are in <tt>/usr/local/Gambit-C/current/bin</tt>.
  
 
* [[Programming language shootout: binary trees|binary-trees.scm]]
 
* [[Programming language shootout: binary trees|binary-trees.scm]]

Latest revision as of 00:43, 5 March 2008

The programs

Here are implementations for some programs from the Computer Language Benchmarks Game for Gambit.

Running k-nucleotide.scm with the largest data set creates a string of length 5,000,000. With four-byte characters (Gambit's default) this is 20,000,000 byte object, and the largest object that can be created in a 32-bit system is a bit less than 16MB. So, either configure Gambit with --enable-char-size=1 (or 2) or use a 64-bit version of Gambit.

The suggested build and install procedure for Gambit on the Computer Language Benchmarks Game machine is

./configure CC='gcc -march=pentium4 -mfpmath=sse -msse2' --enable-single-host --enable-char-size=1
make
make install

This installs Gambit in /usr/local/Gambit-C, and the binaries gsi and gsc are in /usr/local/Gambit-C/current/bin.