def _analyze_case(model_dir, bench_dir, config):
model_timings = set(glob.glob(os.path.join(model_dir, "<STR_LIT:*>" + config["<STR_LIT>"])))<EOL>if bench_dir is not None:<EOL><INDENT>bench_timings = set(glob.glob(os.path.join(bench_dir, "<STR_LIT:*>" + config["<STR_LIT>"])))<EOL><DEDENT>else:<EOL><INDENT>bench_timings = set()<EOL><DEDENT>if not len(model_timings):<EOL><INDENT>return dict()<EOL><DEDENT>model_stats = generate_timing_stats(model_timings, config['<STR_LIT>'])<EOL>bench_stats = generate_timing_stats(bench_timings, config['<STR_LIT>'])<EOL>return dict(model=model_stats, bench=bench_stats)<EOL>
Generates statistics from the timing summaries