[Python-Dev] Pie-thon benchmark code ready

Dan Sugalski dan at sidhe.org
Wed Dec 31 16:16:34 EST 2003

At 11:31 AM -0800 12/31/03, Guido van Rossum wrote:
>(Thanks for the p6i archives link BTW; Googling for "p6i" wasn't too
>helpful since its true name is perl6.internals. :-)
>>  >   $ 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:

[Failure snipped]

>  >
>>  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)
>No, this means that the benchmark fails on that platform.
>But you got quite far (the first 5 sections of b0.py worked without a
>I notice you're using the original Python 2.3 release thjat came with
>Panther.  It's a bit old.  If upgrading to Python 2.3.3 doesn't help,

Turns out not to. I built and installed the 2.3.3 kit and it still 
fails, albeit differently.

>can you send me the output of
>   python b0.py
>?  Send it in private mail, it's rather large. :-)

Sent under a separate cover. Traceback (for those folks following 
along at home) is:

lir:~/Desktop/parrotbench dan$ /usr/local/bin/python2.3 
b0.py >b0_output_darwin.lst
Traceback (most recent call last):
   File "b0.py", line 924, in ?
   File "b0.py", line 893, in main
   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: 2772929724L != 4201300315L
lir:~/Desktop/parrotbench dan$

I did get bytecode on a linux system, so I've something to work with, 
though it'll be tough to test times as we go on. (Though I figure if 
I can beat the 1.4GHz Celeron system with my 600MHz G3 laptop I'll be 
doing good :)

I'll give this a shot on the 10.2 OS X server box I have at home, 
just for chuckles. (I can set it up as an automated build server if 
you want, which is all I use it for right now)


--------------------------------------"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