code: def cli(patterns, times, json, csv, rst, md, ref, unit, precision, debug):
      '''Execute minibench benchmarks'''
      if ref:
          ref = JSON.load(ref)
  
      filenames = []
      reporters = [CliReporter(ref=ref, debug=debug, unit=unit, precision=precision)]
      kwargs = {}
      for pattern in patterns or ['**/*.bench.py']:
          filenames.extend(resolve_pattern(pattern))
      if json:
          reporters.append(JsonReporter(json, precision=precision))
      if csv:
          reporters.append(CsvReporter(csv, precision=precision))
      if rst:
          reporters.append(RstReporter(rst, precision=precision))
      if md:
          reporters.append(MarkdownReporter(md, precision=precision))
      if times:
          kwargs['times'] = times
      runner = BenchmarkRunner(*filenames, reporters=reporters, debug=debug)
      runner.run(**kwargsf cli(patterns, times, json, csv, rst, md, ref, unit, precision, debug):
      '''Execute minibench benchmarks'''
      if ref:
          ref = JSON.load(ref)
  
      filenames = []
      reporters = [CliReporter(ref=ref, debug=debug, unit=unit, precision=precision)]
      kwargs = {}
      for pattern in patterns or ['**/*.bench.py']:
          filenames.extend(resolve_pattern(pattern))
      if json:
          reporters.append(JsonReporter(json, precision=precision))
      if csv:
          reporters.append(CsvReporter(csv, precision=precision))
      if rst:
          reporters.append(RstReporter(rst, precision=precision))
      if md:
          reporters.append(MarkdownReporter(md, precision=precision))
      if times:
          kwargs['times'] = times
      runner = BenchmarkRunner(*filenames, reporters=reporters, debug=debug)
      runner.run(**kwargs)
docs: Execute minibench benchmarks