[Python-Dev] Pie-thon benchmark code ready
Dan Sugalski
dan at sidhe.org
Wed Dec 31 14:06:10 EST 2003
At 10:27 AM -0800 12/31/03, Guido van Rossum wrote:
> > > ftp://ftp.python.org/pub/python/parrotbench/parrotbench.tgz
>>
>> Woohoo! The announcement's forwarded on to p6i for the denizens there
>> to grovel over. I fully expect many hours of pain and misery ahead to
>> make this work. :)
>
>Enjoy. :-) Is there a online archive where I can watch the fun
>without signing up?
>
>BTW I forgot to mention that parts of the test are self-checking, but
>other parts require comparing of the output. The file 'out' is all
>you should care about. And if you want the bytecode, try this in a
>Unix shell:
>
> $ python2.3 -O
> [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import b
> >>> ^D
> $
Hrm. On my OS X laptop:
lir:~/Desktop/parrotbench dan$ python -O
Python 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import b
--> iteration 0
--> b0
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "b.py", line 12, in ?
b0.main()
File "b0.py", line 893, in main
checkoutput(4201300315)
File "b0.py", line 763, in checkoutput
check(strhash(outputtext), n)
File "b0.py", line 3, in check
raise AssertionError("%.30r != %.30r" % (a, b))
AssertionError: 503203581L != 4201300315L
>>>
I'll try generating the bytecode on a linux box, but something seems
amiss somewhere. (Perhaps just in my understanding of what should be
happening)
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan at sidhe.org have teddy bears and even
teddy bears get drunk
More information about the Python-Dev
mailing list