(benchmark_name, nrun, t)
| 42 | |
| 43 | |
| 44 | def write_result(benchmark_name, nrun, t): |
| 45 | bench_result = f"{benchmark_name}\t{nrun}\t{t}" |
| 46 | if out_file is not None: |
| 47 | if not hasattr(write_result, 'file'): |
| 48 | write_result.file = open(out_file, 'w+') |
| 49 | write_result.file.write(bench_result) |
| 50 | write_result.file.write('\n') |
| 51 | else: |
| 52 | print_msg(bench_result) |
| 53 | |
| 54 | |
| 55 | def close_result(): |