How can I get the source codes for the “Computer L

2020-06-12 04:23发布

问题:

A student and I are building a new family of interpreters, which we would like to benchmark against existing interpreters. We would love to download a tarball or zip file containing all the source codes used in the Computer Language Benchmarks Game. I've downloaded the zip file from the project page, but it contains only some infrastructure which does not work on Debian lenny, and Python source code for just 2 benchmarks. All the other source code is MIA.

Another problem is that the interactive dropdown menu seems to show Java source no matter what language is asked for. Not that I want to go through a zillion menus; I just want all the source.

I feel like a complete idiot for not being able to find this source code, but I can't. Can anyone tell me how can I download all the source code used in the Language Benchmarks Game?


[NB I believe this question is in scope for SO because benchmarks are a vital resource for programmers who need to be concerned with performance.]

回答1:

The zipball you downloaded was for the bencher module. You want the bench module (only packaged as part of the complete repo packages).

To get the benchmark sources from the official CVS:

cvs -d :pserver:anonymous@cvs.debian.org:/cvs/benchmarksgame login
cvs -d :pserver:anonymous@cvs.debian.org:/cvs/benchmarksgame checkout benchmarksgame/bench

The repo is also available as an unofficial mirror on Github:

git clone git://github.com/kragen/shootout.git

Official repo tarball: https://alioth.debian.org/snapshots.php?group_id=100815

Unofficial mirror repo zipball: https://github.com/kragen/shootout/zipball/master

(see http://shootout.alioth.debian.org/play.php#misc)



回答2:

From the GitLab archive.

From the current source-code zip-file.