Skip to content

Commit

Permalink
Setup speed_test for custom python 2.5
Browse files Browse the repository at this point in the history
darcs-hash:20091010160147-a5408-ee4b1c48f67541fa3087740daedcc30a3e4a21b1.gz
  • Loading branch information
DanielStutzbach committed Oct 10, 2009
1 parent 0fb50b5 commit 945f78a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions speed_test.py
Expand Up @@ -7,12 +7,12 @@
# you won't get a fair comparison with Python's built-in list type
#CFLAGS = '-g -O3 -DNDEBUG=1 -DLIMIT=%d -fno-strict-aliasing -I/usr/local/include/python2.5 -Winline'# --param inline-unit-growth=2000 --param max-inline-insns-single=2000 --param max-inline-insns-auto=2000' # --param inline-unit-growth=2000'
#CFLAGS='-pg -O3 -DLIMIT=%d -fno-strict-aliasing -DNDEBUG=1 -I/usr/local/include/python2.5'
CFLAGS='-c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/local/include/python3.0 --std=gnu99'
CFLAGS='-c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include/python2.5 --std=gnu99'
CC = 'gcc'
PYTHON='python3.0'
PYTHON='/usr/bin/python2.5'
LD = CC
LDFLAGS='-g -shared'
LOADLIBES='-lpython3.0'
LDFLAGS='-g -shared -L/usr/lib/python2.5/config -Wl,--enable-auto-image-base'
LOADLIBES='-lpython2.5'
#PYTHON='/home/agthorr/mypython-2.5/python'

# List of BList node sizes to try
Expand Down Expand Up @@ -95,7 +95,7 @@ def timeit(stmt, setup, rep):
if key in timeit_cache:
return timeit_cache[key]
try:
p = subprocess.Popen([PYTHON, '/usr/local/lib/python3.0/timeit.py',
p = subprocess.Popen([PYTHON, '/usr/lib/python2.5/timeit.py',
'-r', '5', '-n', str(rep), '-s', setup, '--', stmt],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
so, se = p.communicate()
Expand Down
4 changes: 2 additions & 2 deletions speed_test_native.py
Expand Up @@ -38,8 +38,8 @@ def rm(x):
types = ('blist', 'list')

typemap = {
'blist': '/home/agthorr/mypython-2.5/python.exe',
'list': '/home/agthorr/Python-2.5/python.exe',
'blist': '/home/agthorr/mypython-2.5/python',
'list': '/home/agthorr/Python-2.5/python',
}

ns = (range(1,10) + range(10, 100, 10) + range(100, 1000, 100)
Expand Down

0 comments on commit 945f78a

Please sign in to comment.