理查兹替补基准 [英] Richards bench benchmark

查看:75
本文介绍了理查兹替补基准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有Martin Richards基准测试台的Python实现?


有趣的是将它添加到这些
www.lissett.com/ben/exp/bench1.htm

Is there a Python implementation of Martin Richards benchmark Bench?

Be interesting to add it to these
www.lissett.com/ben/exp/bench1.htm

推荐答案

Duncan Lissett写道:
Duncan Lissett wrote:
是否有Martin Richards基准测试台的Python实现?

有趣的是将它添加到这些
www.lissett.com/ben/exp/bench1.htm
Is there a Python implementation of Martin Richards benchmark Bench?

Be interesting to add it to these
www.lissett.com/ben/exp/bench1.htm




我怀疑是否存在。甚至看起来都没有

规格。它甚至看起来像

的不同实现,基准测试是由随机移植任意其他版本的b / b
实现的。例如,Algol68来自Pascal,

和Pascal来自C(?)。


比这更差,我不能在任何地方找到基准的规格

。该怎么办?通过

在Python中编写这个反向工程从其他一些

语言实现可能错误的实现将是徒劳的一个很好的练习。


有关于 http:// www的提示.cl.cam.ac.uk / users / mr / Bench.html

(马丁关于这个主题的页面)暗示(为

系统实现语言的比较)这不是支持Python的适当基准测试。 Python通常不会在该域中使用
,它可能甚至不能做什么

而不需要使用C扩展...


我的猜测是有更多的现代基准测试更有效率b / b
在比较Python性能的地方有效吗?使用b $ b,但是甚至没有描述这个的纸,谁能说?


-Peter



I doubt one exists yet. There doesn''t even appear to be a
specification. It even looks like different implementations of
that benchmark were implemented by random people porting arbitrary
other versions. For example, the Algol68 one comes from Pascal,
and the Pascal one came from C (?).

Worse than that, I can''t find a specification for the benchmark
anywhere. What''s it supposed to do? Writing this in Python by
reverse engineering a possibly buggy implementation from some other
language would be a wonderful exercise in futility.

There''s a hint on http://www.cl.cam.ac.uk/users/mr/Bench.html
(Martin''s own page on the subject) which suggests ("designed for the
comparison of System Implementation Languages") that this is not
a suitable benchmark for Python anyway. Python doesn''t normally
get used in that domain, and it might be it can''t even do what
is required without resorting to C extensions...

My guess is there are more modern benchmarks that are much more
effective at comparing Python performance in areas where it''s really
used, but without even a paper describing this one, who could say?

-Peter


Peter Hansen< ; PE *** @ engcorp.com>在消息新闻中写道:< jL ******************** @ powergate.ca> ...
Peter Hansen <pe***@engcorp.com> wrote in message news:<jL********************@powergate.ca>...
有'提示 http://www.cl。 cam.ac.uk/users/mr/Bench.html
(Martin关于这个主题的页面)暗示(为系统实现语言的比较而设计) )无论如何,这不是适合Python的基准。 Python通常不会在该域中使用,并且它可能甚至无法在不使用C扩展的情况下执行
...
There''s a hint on http://www.cl.cam.ac.uk/users/mr/Bench.html
(Martin''s own page on the subject) which suggests ("designed for the
comparison of System Implementation Languages") that this is not
a suitable benchmark for Python anyway. Python doesn''t normally
get used in that domain, and it might be it can''t even do what
is required without resorting to C extensions...




这会很难过,因为语言实现者已经使用Bench来讨论Smalltalk和Self的性能特征以及

Java。 />

用Richards基准测试对Java进行基准测试
http://research.sun.com/people/mario.../richards.html


Duncan Lissett写道:
Duncan Lissett wrote:
Peter Hansen< pe *** @ engcorp.com>在消息新闻中写道:< jL ******************** @ powergate.ca> ...

Peter Hansen <pe***@engcorp.com> wrote in message news:<jL********************@powergate.ca>...

有关于 http://的提示www.cl.cam.ac.uk/users/mr/Bench.html
(马丁关于这个主题的页面)暗示(为...的比较而设计)系统实现语言)这不是一个适合Python的合适基准。 Python通常不会在该域中使用,并且它可能甚至无法在不使用C扩展的情况下执行
...
There''s a hint on http://www.cl.cam.ac.uk/users/mr/Bench.html
(Martin''s own page on the subject) which suggests ("designed for the
comparison of System Implementation Languages") that this is not
a suitable benchmark for Python anyway. Python doesn''t normally
get used in that domain, and it might be it can''t even do what
is required without resorting to C extensions...



考虑到语言实现者已经使用Bench来探索Smalltalk和Self以及Java的性能特征,那将是令人难过的。

用Java标记Java Richards基准测试
http:// research .sun.com / people / mario ... / richards.html




这是我在Richards''找不到的有用的额外信息自己的网站。

(他自己的网站将其称为工作台,但我猜其他人称之为

" richard" - 它有助于搜索正确的事情。)


它似乎是规范。是他的原创,在BCPL写的是
。它似乎也是相对通用的问题,

只是一个任务调度程序,没有真正需要低级支持

我所担心的那种(看了之后) Pascal和C版本。


我会用Python实现它,但是我不知道我怎么知道

我的版本是否做得对。有没有测试

呢?确保输出的方法是正确的吗?


-Peter



That has useful additional info I couldn''t find on Richards'' own site.
(His own site refers to it as "bench", but I guess others call it
"richard" -- it helps to be searching for the right thing.)

It appears the "specification" is his original, which was written
in BCPL. It also seems that the problem is relatively generic,
just a "task scheduler", without really requiring low-level support
of the kind I feared (after looking at the Pascal and C versions).

I''d implement it in Python for kicks, but I''m not sure how I''d know
whether my version was doing the right thing. Are there any tests
for it? Ways of ensuring the output is correct?

-Peter


这篇关于理查兹替补基准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆