treesls/artificial_evaluation/6-rocksdb/test_rocksdb.sh

26 lines
584 B
Bash
Executable File

#!/bin/bash
source ../config.sh
logdir=$logbasedir/rocksdb/
loop=(0)
threads=(1)
mkdir -p $logdir
# Test rocksdb benchmark with and without taking checkpoint
for thread in ${threads[@]}
do
for run in ${loop[@]}
do
# baseline
mkdir -p $logdir/$thread/chcore-base
$appdir/rocksdb.exp raw $thread 2>&1 | tee $logdir/$thread/chcore-base/$run.out
sleep 10
# with ckpt
mkdir -p $logdir/$thread/chcore-ckpt
$appdir/rocksdb.exp ckpt $thread 1 0 2>&1 | tee $logdir/$thread/chcore-ckpt/$run.out
sleep 10
done
done