aboutsummaryrefslogtreecommitdiff
path: root/testmain_preinit.sh
blob: d48cbf036d2522a3286a55e307bf339718f2120b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
mkdir -p results
trials=1
runs_test=500

# minimum is ceil(lg(runs_test)), otherwise modify will fail
for i in `seq 10 25`
do
    echo "logleaves "$i

    runs_create=$(echo '2^'"$i" | bc)

    echo "Doing "$trials"x"$runs_test" operations, with prepopulated database"
    for j in $(seq 1 $trials)
    do
        ./testall_preinit.sh $i $runs_test 2> results/run_"$i"_"$j".txt
        sleep .2

        # dummy
        ./testdummy_preinit.sh $i $runs_test 2> results/dummy_"$i"_"$j".txt
        sleep .2
    done
done