Python on Tandy Model 102?

Erno Kuusela erno-news at erno.iki.fi
Fri Feb 1 02:27:58 EST 2002


In article <a39vg5$8ml$0 at 216.39.172.122>, bokr at oz.net (Bengt Richter)
writes:

| On 30 Jan 2002 12:49:01 +0200, Erno Kuusela <erno-news at erno.iki.fi> wrote:
|| 
|| i noticed this the other day:
|| 
|| [/usr/local/bin/python2.1]
|| This machine benchmarks at 10526.3 pystones/second
|| [/usr/bin/python2.1]
|| This machine benchmarks at 16129 pystones/second
|| 
|| the debian-provided /usr/bin/python2.1 is dynamically linked against
|| libpython.so whereas the one in /usr/local/bin is not, i can't
|| think of other major differences (both have threading enabled, at least).
|| 
| Maybe compiled with different optimization?

i tried it just to be sure. i did apt-get source python, and did
make -f debian/rules build, and then tested using
cd builddir; LD_LIBRARY_PATH=. ./python /path/to/pystone.py

then i took the orig.tar.gz and extracted it, and ran
./configure; make; ./python /path/to/pystone.py

i verified both were using the same compiler and CFLAGS (gcc 2.95.4,
-O2 -g) with the obvious variation of -fPIC in the debian-patched
version.

the results did not change. 

  -- erno






More information about the Python-list mailing list