Re: is this a rigged test?
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Sun, 30 Dec 2007 18:56:13 -0800
tom arnall wrote:
is this a rigged test? at:
http://shootout.alioth.debian.org/gp4/benchmark.php?\
test=partialsums&lang=perl&id=3
i find a 'partial-sums' benchmark coded in Perl, in which what should be a constant is coded as a subroutine call!!!
In Perl constants are defined as subroutines. See the "Constant Functions" section of perlsub:
perldoc perlsub
I looked at the same benchmark for Python and they use a constant. is this for real?
the partial-sums code was all i checked.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
.
- References:
- is this a rigged test?
- From: Tom Arnall
- is this a rigged test?
- Prev by Date: Re: configuring startperl during make ?
- Next by Date: Re: is this a rigged test?
- Previous by thread: is this a rigged test?
- Next by thread: is this a rigged test?
- Index(es):
Relevant Pages
|