INNER CODE UNIT · Python

n

shenwei356/rush · benchmark.py:35

        n = int((70 - len(msg)) / 2)
        sys.stderr.write('{}[ {} ]{}\n'.format('-' * n,  msg, '-' * n))

        sys.stderr.write('\ncommands:\n')
        times = dict()
        for app, args in apps.items():
            cmd = '{} | {} {} {} {} "{}" > t.{}'.format(
                test[1], app, args['jobs'], njobs,
                args['keep-order'] if keep_order else '',
                test[2], os.path.basename(app))

            sys.stderr.write('{}\n'.format(cmd))

            times[app] = timeit(cmd)

        sys.stderr.write('\ntime:\n')
        for app in sorted(times.keys()):
            sys.stderr.write('{}: {}\n'.format(app, times[app]))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…