def benchmarkFunc(iter, args=()):
 def decorator(func):
  benchmarkFuncs.append((func, args, iter))
  return func
 return decorator

def benchmarkFunc ( iter , args = ( ) ) : def decorator ( func ) : benchmarkFuncs . append ( ( func , args , iter ) ) return func return decorator
a decorator for benchmark functions that measure a single iteration count .