def _summarize_result(result, config):
timing_var = config['<STR_LIT>']<EOL>summary = LIVVDict()<EOL>for size, res in result.items():<EOL><INDENT>proc_counts = []<EOL>bench_times = []<EOL>model_times = []<EOL>for proc, data in res.items():<EOL><INDENT>proc_counts.append(int(proc[<NUM_LIT:1>:]))<EOL>try:<EOL><INDENT>bench_times.append(data['<STR_LIT>'][timing_var]['<STR_LIT>'])<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>model_times.append(data['<STR_LIT>'][timing_var]['<STR_LIT>'])<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>if model_times != [] and bench_times != []:<EOL><INDENT>time_diff = np.mean(model_times)/np.mean(bench_times)<EOL><DEDENT>else:<EOL><INDENT>time_diff = '<STR_LIT>'<EOL><DEDENT>summary[size]['<STR_LIT>'] = "<STR_LIT:U+002CU+0020>".join([str(x) for x in sorted(proc_counts)])<EOL>summary[size]['<STR_LIT>'] = time_diff<EOL><DEDENT>return summary<EOL>
Trim out some data to return for the index page