parameters: (cls, libs, commands, fnames=None, n_records=10000, attempts=5)
return_statement: return times
docstring: Run all benchmarks.
docstring_summary: Run all benchmarks.
docstring_tokens: Run all benchmarks .
function: def run_all(cls, libs, commands, fnames=None, n_records=10000, attempts=5):
      """Run all benchmarks."""
      times = []
      try:
        build_avsc_jar()
      except Exception:
        pass # Missing dependency, skip.
      available_names = set(os.listdir(cls._schemas_dpath))
      fnames = fnames or available_names
      for fname in sorted(fnames):
        if fname in available_names:
          bench = Benchmark(fname, n_records, attempts, libs, commands)
          times.extend(bench.run())
        else:
          _logger.warn('schema %s not found', fname)
      return times
function_tokens: def run_all ( cls , libs , commands , fnames = None , n_records = 10000 , attempts = 5 ) : times = [ ] try : build_avsc_jar ( ) except Exception : pass # Missing dependency, skip. available_names = set ( os . listdir ( cls . _schemas_dpath ) ) fnames = fnames or available_names for fname in sorted ( fnames ) : if fname in available_names : bench = Benchmark ( fname , n_records , attempts , libs , commands ) times . extend ( bench . run ( ) ) else : _logger . warn ( 'schema %s not found' , fname ) return times