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

12 lines
154 B
Python

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