Skip to content

Commit

Permalink
extend benchmark to run on all disk I/O backends
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Aug 15, 2022
1 parent b5dd3a3 commit 6240f30
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ def main():

rm_file_or_dir('t')

run_test('download-write-through', 'upload', ['-1', '--disk_io_write_mode=write_through', '-s', args.save_path], args.download_peers)
reset_download(args.save_path)
run_test('download-full-cache', 'upload', ['-1', '--disk_io_write_mode=enable_os_cache', '-s', args.save_path], args.download_peers)
run_test('upload', 'download', ['-G', '-e', '240', '-s', args.save_path], args.upload_peers)
for io_backend in ["mmap", "pread", "posix"]:
run_test(f'download-write-through-{io_backend}', 'upload', ['-i', io_backend, '-1', '--disk_io_write_mode=write_through', '-s', args.save_path], args.download_peers)
reset_download(args.save_path)
run_test(f'download-full-cache-{io_backend}', 'upload', ['-i', io_backend, '-1', '--disk_io_write_mode=enable_os_cache', '-s', args.save_path], args.download_peers)
run_test(f'upload-{io_backend}', 'download', ['-i', io_backend, '-G', '-e', '240', '-s', args.save_path], args.upload_peers)


def run_test(name, test_cmd, client_arg, num_peers):
Expand Down

0 comments on commit 6240f30

Please sign in to comment.