Resources containing cross-language benchmarks?

烂漫一生 提交于 2019-12-22 08:24:27

问题


What resources are available that use benchmarks for comparing programming languages? I am interested in both

  • How quickly a program in a given language can execute a given benchmark?

  • How many lines of code are required in a given language to implement a given benchmark?

There is a long-standing web site called the Computer Language Benchmarks Game, originally created by Doug Bagley as the "Great Computer Language Shootout". (You can view a little history at Portland Patterns Repository.)

Is anyone aware of other resources that enable programmers to compare performance and size of programs written in different languages?


回答1:


Alternatives

After a quick google search, I found a couple other sites where benchmarks for various languages have been done. Some other sites mention the programming language shootout site that is currently down.

There is a CPAN module for Perl that uses the same code found on that site.

Google has a directory where pages on this topic can be found. I have not found any yet that are as comprehensive as the page you speak of, but there are certainly other resources out there for comparisons.

Archived / Cached Page

If you're only seeking some information there, you can view archived pages of the site using the Wayback Machine or Google's cached version. Try searching Google with "site: shootout.alioth.debian.org" and click on the "Cached" links for the pages you find.

Find the Author?

Perhaps the best option is to try to contact the owner of the old site and find out what happened. The author mentioned in the BSD licence on this page is "Brent Fulgham". He may or may not be the one to contact.

Wait until Alioth is Fixed

As @ioguy found out, Debian's Alioth server that hosts the site in question is currently under maintenance. I would suggest subscribing to the debian-devel-announce mailing list for updates, and an idea of when it may be fully functional again.

If you find problems in the future, you can probably post to the debian-user list.




回答2:


  1. Each year there are two or three isolated blog posts that claim to compare performance and size of one or two programs written in different languages.

    As a resource the blog posts fail for obvious reasons, most obviously:

    • not updated with newer versions of the language implementation

    • not updated with better programs

  2. Every couple of years someone dissatisfied with something about the benchmarks game (often some detail about the code repository or website technology) starts a project that will fix everything they dislike about the benchmarks game.

    As a resource the most obvious problem with those projects is that they never seem to get close to publishing performance data.

  3. Every year some group of programmers campaigns to have language X included in the benchmarks game, while some other group demands that some program is included (or excluded).

    Sadly, they rarely accept that among the resources provided by the benchmarks game are

    • scripts they can use to make and publish language performance measurements

    • examples of which basic information (language version, build commands, run commands, measurement techniques, ...) is required to provide context for the measurements.

    They rarely accept that they are empowered to create what they wish to see.




回答3:


The benchmarks game website is now back to normal!

From Friday 20 May 2011 through Monday 23 May 2011, ALL alioth.debian.org subdomains were down - because the alioth admins were upgrading "in every way we can find: kernel, Debian release, FusionForge software, hardware, and so on."

In addition, making the benchmarks game website work again required:

  • installation of the GD library on the new server, for chart generation

  • basic information about changes to ssh use on the new servers

  • basic information about the project cvs repository on the new servers

  • basic information about the project /htdocs location on the new servers

  • replacement of the long deprecated $HTTP_GET_VARS by $_GET in a couple of dozen PHP scripts

Since the performance benchmark site for Programming Languages (aka Programming Language "Shootout" & shootout.alioth.debian.org) is permanently down ...

The original question was predicated on a false premise.



来源:https://stackoverflow.com/questions/6091572/resources-containing-cross-language-benchmarks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!