[Python-Dev] Pie-thon benchmark code ready
Guido van Rossum
guido at python.org
Wed Dec 31 14:31:02 EST 2003
(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:
> 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 ?
> 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: 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
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,
can you send me the output of
? Send it in private mail, it's rather large. :-)
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev