From 7b7793e97aa936264c5092b577f5ac7911409e41 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Wed, 12 Mar 2014 15:12:09 -0700 Subject: [PATCH] Don't sync in stress test Summary: Syncing in stress test makes it run much much much slower. It also doesn't add much value IMO. Test Plan: no Reviewers: ljin Reviewed By: ljin CC: leveldb Differential Revision: https://reviews.facebook.net/D16839 --- tools/db_crashtest.py | 6 ++---- tools/db_crashtest2.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index 16603cfd6..2979a0508 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -84,9 +84,9 @@ def main(argv): --cache_size=1048576 --open_files=500000 --verify_checksum=1 - --sync=%s + --sync=0 --disable_wal=0 - --disable_data_sync=%s + --disable_data_sync=1 --target_file_size_base=2097152 --target_file_size_multiplier=2 --max_write_buffer_number=3 @@ -101,8 +101,6 @@ def main(argv): tempfile.mkdtemp(), random.randint(0, 1), random.randint(0, 1), - random.randint(0, 1), - random.randint(0, 1), random.randint(0, 1))) child = subprocess.Popen([cmd], diff --git a/tools/db_crashtest2.py b/tools/db_crashtest2.py index 6a28a0ba4..68cc42cf3 100644 --- a/tools/db_crashtest2.py +++ b/tools/db_crashtest2.py @@ -98,9 +98,9 @@ def main(argv): --cache_size=1048576 --open_files=500000 --verify_checksum=1 - --sync=%s + --sync=0 --disable_wal=0 - --disable_data_sync=%s + --disable_data_sync=1 --target_file_size_base=2097152 --target_file_size_multiplier=2 --max_write_buffer_number=3 @@ -117,8 +117,6 @@ def main(argv): random.randint(0, 1), random.randint(0, 1), random.randint(0, 1), - random.randint(0, 1), - random.randint(0, 1), additional_opts)) print "Running:" + cmd + "\n" -- GitLab