diff --git a/tools/regression_test.sh b/tools/regression_test.sh index ed3ef7ab3..460400b7e 100755 --- a/tools/regression_test.sh +++ b/tools/regression_test.sh @@ -142,6 +142,7 @@ function main { run_db_bench "deleterandom" $((NUM_KEYS / 10 / $NUM_THREADS)) run_db_bench "seekrandom" run_db_bench "seekrandomwhilewriting" + run_db_bench "multireadrandom" fi cleanup_test_directory $TEST_ROOT_DIR @@ -192,6 +193,8 @@ function init_arguments { DELETE_TEST_PATH=${DELETE_TEST_PATH:-0} SEEK_NEXTS=${SEEK_NEXTS:-10} SEED=${SEED:-$( date +%s )} + MULTIREAD_BATCH_SIZE=${MULTIREAD_BATCH_SIZE:-128} + MULTIREAD_STRIDE=${MULTIREAD_STRIDE:-12} } # $1 --- benchmark name @@ -240,7 +243,10 @@ function run_db_bench { --max_background_compactions=$MAX_BACKGROUND_COMPACTIONS \ --num_high_pri_threads=$NUM_HIGH_PRI_THREADS \ --num_low_pri_threads=$NUM_LOW_PRI_THREADS \ - --seed=$SEED) 2>&1" + --seed=$SEED \ + --multiread_batched=true \ + --batch_size=$MULTIREAD_BATCH_SIZE \ + --multiread_stride=$MULTIREAD_STRIDE) 2>&1" ps_cmd="ps aux" if ! [ -z "$REMOTE_USER_AT_HOST" ]; then echo "Running benchmark remotely on $REMOTE_USER_AT_HOST"