aboutsummaryrefslogtreecommitdiff
path: root/testmain_preinit.sh
blob: 7be371bcd8e80a22cdcfab5587c2ec47b0794759 (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=2
runs_test=500

# minimum is ceil(lg(runs_test)), otherwise modify will fail
for i in `seq 10 12`
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