def main():
    print('Running benchmarks.')

    results = insert_seperator_results(collect_results())

    with open(RST, 'w') as f:
        def w(s):
            f.write(s)
            f.write('\n')
            f.flush()

        w('.. table:: Current goless Benchmarks')
        w('')
        w(make_sepline())
        w('    |Platform |Backend  |Benchmark     |Time   |')
        w(make_sepline('='))
        for br in results:
            f.write('    ')
            f.write(justify_benchresult(br))
            f.write('\n')
            f.write(make_sepline())
            f.write('\n')
    print('Benchmarks finished. Report written to %s' % RST)
dataset/ETHPy150Open rgalanakis/goless/write_benchresults.py/main/original