A place to write and run performance tests. The variants we're

most interested in are:

'baseline' -- swig run without any special flags
'optimized' -- swig run with -O flag
'builtin' -- swig run with -builtin flag




git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Stefan Zager 2011-02-09 07:26:07 +00:00
commit 460ac6206a
28 changed files with 1294 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#!/usr/bin/env
import sys
from subprocess import *
proc = Popen([sys.executable, 'runme_baseline.py'], stdout=PIPE)
(stdout, stderr) = proc.communicate()
print stdout
proc = Popen([sys.executable, 'runme_optimized.py'], stdout=PIPE)
(stdout, stderr) = proc.communicate()
print stdout
proc = Popen([sys.executable, 'runme_builtin.py'], stdout=PIPE)
(stdout, stderr) = proc.communicate()
print stdout