MCPcopy Create free account
hub / github.com/duckdb/duckdb / write_result

Function write_result

scripts/regression_test_python.py:44–52  ·  view source on GitHub ↗
(benchmark_name, nrun, t)

Source from the content-addressed store, hash-verified

42
43
44def 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
55def close_result():

Callers 1

writeMethod · 0.85

Calls 2

print_msgFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected