swig/Examples/python/performance/func/runme.py

12 lines
153 B
Python

import sys
sys.path.append("..")
import harness
def proc(mod):
x = mod.MyClass()
for i in range(10000000):
x.func()
harness.run(proc)