parameters: (f)
return_statement: return inner
docstring: decorator to turn f into a factory of benchmarks
docstring_summary: decorator to turn f into a factory of benchmarks
docstring_tokens: decorator to turn f into a factory of benchmarks
function: def benchmark_method(f):
      "decorator to turn f into a factory of benchmarks"
  
      @wraps(f)
      def inner(name, *args, **kwargs):
          return Benchmark(name, f, args, kwargs)
  
      return inner
function_tokens: def benchmark_method ( f ) : @ wraps ( f ) def inner ( name , * args , * * kwargs ) : return Benchmark ( name , f , args , kwargs ) return inner