3 GDAXLIB="./dependencies/libcds-2.3.2/build-release/bin"
4 GDAXDIR="gdax-orderbook-hpp/demo"
7 MABAINDIR="mabain/examples"
9 JSBENCH_DIR="jsbench-2013.1"
10 JSEXE_PATH="/data/tsan11-benchmarks/js"
12 TESTS="gdax silo mabain iris jsbench"
16 REDUNDANT="jemalloc.stats log.txt"
18 function run_gdax_test {
20 export LD_LIBRARY_PATH="${GDAXLIB}"
22 for i in `seq 1 1 $TOTAL_RUN`
30 function run_silo_test {
31 for i in `seq 1 1 $TOTAL_RUN`
34 ./silo/out-perf.masstree/benchmarks/dbtest --verbose -t 5
38 function run_mabain_test {
40 export LD_LIBRARY_PATH="${MABAINLIB}"
42 for i in `seq 1 1 $TOTAL_RUN`
45 rm ./multi_test/* 2> /dev/null
46 time ./mb_multi_thread_insert_test
51 function run_iris_test {
52 for i in `seq 1 1 $TOTAL_RUN`
55 time ./iris/test_lfringbuffer
59 function run_jsbench_test {
61 python ./harness.py ${JSEXE_PATH} ${TOTAL_RUN}
65 rm $REDUNDANT 2> /dev/null
67 echo "Benchmarks: ${TESTS}"
70 rm "${t}.log" 2> /dev/null
72 (run_${t}_test 2>&1) > "${t}.log"