包含跨语言基准的资源?

发布于 2024-11-08 17:06:00 字数 472 浏览 0 评论 0 原文

有哪些资源可以使用基准来比较编程语言? 我对以下两个问题都感兴趣:

  • 给定语言的程序执行给定基准的速度有多快?

  • 给定语言需要多少行代码才能实现给定基准?

有一个名为 计算机语言基准游戏,最初由 Doug Bagley 创建,被称为“伟大的计算机”语言大战”。 (您可以在 Portland Patterns Repository 查看一点历史。)

是否有人知道其他资源使程序员能够比较用不同语言编写的程序的性能和大小?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

谜泪 2024-11-15 17:06:00

替代方案

经过快速谷歌搜索后,我找到了夫妇 其他 网站已经完成了各种语言的基准测试。 一些 其他 网站 提及目前已关闭的编程语言枪战网站。

Perl 有一个 CPAN 模块,它使用 相同的代码

Google 有一个目录,可以在其中找到有关此主题的页面。我还没有找到像您所说的页面一样全面的内容,但肯定还有其他资源可供比较。

存档/缓存页面

如果您只是在那里寻找一些信息,您可以查看 使用 ="nofollow">Wayback Machine 或 Google 的缓存版本。尝试使用“site:shootout.alioth.debian.org”在 Google 中搜索,然后单击找到的页面的“缓存”链接。

找到作者?

也许最好的选择是尝试联系旧网站的所有者并了解发生了什么。作者在 此页面是“Brent Fulgham”。他可能是也可能不是联系的人。

等到 Alioth 被修复

正如 @ioguy 发现的那样,托管有问题站点的 Debian 的 Alioth 服务器是目前正在维护中。我建议订阅 debian-devel-announce更新的邮件列表,以及何时可以再次完全发挥作用的想法。

如果您将来发现问题,您可以发布到 debian-user 列表。

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.

猫弦 2024-11-15 17:06:00
  1. 每年都有两三个
    孤立的博客文章声称
    比较性能和尺寸
    或两个用不同语言编写的程序
    语言。

    作为一种资源,博客文章显然失败了
    最明显的原因是:

    • 未使用较新版本的语言实现进行更新

    • 未更新更好的程序

  2. 每隔几年就会有人
    对某事不满意
    基准游戏(通常是一些
    有关代码存储库的详细信息或
    网站技术)启动一个项目,该项目将
    修复他们不喜欢基准测试游戏的所有内容。

    作为资源最明显的问题
    项目是他们似乎从未得到过
    接近出版业绩
    数据。

  3. 每年都有一些程序员团体
    争取语言 X 的活动
    包含在基准游戏中,
    而其他一些团体则要求
    包含一些程序(或
    排除)。

    可悲的是,他们很少接受这一点
    提供的资源
    基准游戏是

    • 他们可以使用的脚本来制作和发布语言性能
      测量值

    • 基本信息示例(语言版本、版本号)
      命令、运行命令、测量
      技术,...)需要为测量提供上下文。

    他们很少承认自己是
    有权创造他们想要的东西
    看看。

  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.

镜花水月 2024-11-15 17:06:00

基准游戏网站现已恢复正常!

从 2011 年 5 月 20 日星期五到 2011 年 5 月 23 日星期一,所有 alioth.debian.org 子域都已关闭 - 因为 alioth 管理员正在“以各种方式升级”我们可以找到:内核、Debian 版本、FusionForge 软件、硬件等等。”

此外,使基准游戏网站再次运行需要:

  • 在新服务器上安装 GD 库,用于图表生成

  • 有关新服务器上 ssh 使用变化的基本信息

  • 有关新服务器上项目 cvs 存储库的基本信息

  • 有关新服务器上项目 /htdocs 位置的基本信息

  • 替换长期弃用的
    $HTTP_GET_VARS 由 $_GET 组成一对
    十几个 PHP 脚本

自性能基准网站
对于编程语言(又名
编程语言“枪战”&
shotout.alioth.debian.org)是
永久下降 ...

最初的问题是基于错误的前提。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文