swig/Examples/python/performance/deep_hierarchy/runme_builtin.py
Stefan Zager 25be33dcd4 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
2011-02-09 07:31:08 +00:00

11 lines
208 B
Python

#!/usr/bin/env python
import Simple_builtin
import time
t1 = time.clock()
x = Simple_builtin.H()
for i in range(10000000) :
x.func()
t2 = time.clock()
print "Simple_builtin took %f seconds" % (t2 - t1)