parameters: (filename, benchmark_flags)
docstring: Get the results for a specified benchmark. If 'filename' specifies
      an executable benchmark then the results are generated by running the
      benchmark. Otherwise 'filename' must name a valid JSON output file,
      which is loaded and the result returned.
docstring_summary: Get the results for a specified benchmark. If 'filename' specifies
      an executable benchmark then the results are generated by running the
      benchmark. Otherwise 'filename' must name a valid JSON output file,
      which is loaded and the result returned.
docstring_tokens: Get the results for a specified benchmark . If filename specifies an executable benchmark then the results are generated by running the benchmark . Otherwise filename must name a valid JSON output file which is loaded and the result returned .
function: def run_or_load_benchmark(filename, benchmark_flags):
      """
      Get the results for a specified benchmark. If 'filename' specifies
      an executable benchmark then the results are generated by running the
      benchmark. Otherwise 'filename' must name a valid JSON output file,
      which is loaded and the result returned.
      """
      ftype = check_input_file(filename)
      if ftype == IT_JSON:
          return load_benchmark_results(filename)
      elif ftype == IT_Executable:
          return run_benchmark(filename, benchmark_flags)
      else:
          assert False
function_tokens: def run_or_load_benchmark ( filename , benchmark_flags ) : ftype = check_input_file ( filename ) if ftype == IT_JSON : return load_benchmark_results ( filename ) elif ftype == IT_Executable : return run_benchmark ( filename , benchmark_flags ) else : assert False