def benchmarkNFunc(iter, ns):
 def decorator(func):
  for n in ns:
   benchmarkFuncs.append((func, (n,), iter))
  return func
 return decorator

def benchmarkNFunc ( iter , ns ) : def decorator ( func ) : for n in ns : benchmarkFuncs . append ( ( func , ( n , ) , iter ) ) return func return decorator
a decorator for benchmark functions that measure multiple iteration counts .