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
11 lines
224 B
Python
11 lines
224 B
Python
#!/usr/bin/env python
|
|
|
|
import Simple_optimized
|
|
import time
|
|
|
|
t1 = time.clock()
|
|
for i in range(1000000) :
|
|
x = Simple_optimized.MyClass()
|
|
#x.func()
|
|
t2 = time.clock()
|
|
print "Simple_optimized took %f seconds" % (t2 - t1)
|