A collection of performance tests. The variants we're most
interested in are: - swig run without any special parameters - swig run with -O - swig run with -builtin git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f39c09e12d
commit
25be33dcd4
28 changed files with 1294 additions and 0 deletions
40
Examples/python/performance/Makefile
Normal file
40
Examples/python/performance/Makefile
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
ifeq (,$(PY3))
|
||||
PYTHON_INCLUDE= $(DEFS) -I/usr/include/python2.6 -I/usr/lib/python2.6/config
|
||||
PYTHON_LIB =
|
||||
PYTHON = python
|
||||
PYSCRIPT = runme.py
|
||||
else
|
||||
PYTHON_INCLUDE= $(DEFS) -I/home/szager/include/python3.1
|
||||
PYTHON_LIB =
|
||||
PYTHON = python3
|
||||
PYSCRIPT = runme3.py
|
||||
endif
|
||||
|
||||
SUBDIRS := constructor func deep_hierarchy
|
||||
|
||||
default : all
|
||||
|
||||
.PHONY : $(SUBDIRS) all clean
|
||||
|
||||
all : $(SUBDIRS)
|
||||
@for subdir in $(SUBDIRS); do \
|
||||
echo Running $$subdir test... ; \
|
||||
echo -------------------------------------------------------------------------------- ; \
|
||||
cd $$subdir; \
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(PYSCRIPT); \
|
||||
cd ..; \
|
||||
done
|
||||
|
||||
$(SUBDIRS) :
|
||||
$(MAKE) -C $@
|
||||
@echo Running $$subdir test...
|
||||
@echo --------------------------------------------------------------------------------
|
||||
cd $@ && env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(PYSCRIPT)
|
||||
|
||||
%-clean :
|
||||
$(MAKE) -s -C $* clean
|
||||
|
||||
$(SUBDIRS:%=%-check) :
|
||||
$(MAKE) -C $* check
|
||||
|
||||
clean : $(SUBDIRS:%=%-clean)
|
||||
Loading…
Add table
Add a link
Reference in a new issue