diff options
-rw-r--r-- | prepopulate.sh | 21 | ||||
-rwxr-xr-x | tabulate.sh | 8 | ||||
-rwxr-xr-x | testmain.sh | 9 |
3 files changed, 29 insertions, 9 deletions
diff --git a/prepopulate.sh b/prepopulate.sh new file mode 100644 index 0000000..32bcb60 --- /dev/null +++ b/prepopulate.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# create databases and module states under databases/, each with +# 2^logleaves - runs_test files created and updated with one +# unencrypted version + +mkdir -p databases + +runs_test=500 + +# minimum is ceil(lg(runs_test)), otherwise modify will fail +for i in `seq 9 15` +do + echo "logleaves "$i + + runs_create=$(echo '2^'"$i - $runs_test" | bc) + + echo "Doing "$runs_create" operations for create" + + + done +done diff --git a/tabulate.sh b/tabulate.sh index 82e6a06..2cb9801 100755 --- a/tabulate.sh +++ b/tabulate.sh @@ -1,12 +1,12 @@ #!/bin/bash -trials=1 -runs_test=10 +trials=2 +runs_test=500 rm -f all_*.txt dummy_all_*.txt -for i in `seq 4 10` +for i in `seq 9 15` do - for j in `seq 1 1` + for j in `seq 1 $trials` do echo -n "$i $j " >> all_"$i".txt echo -n "$i $j " >> dummy_all_"$i".txt diff --git a/testmain.sh b/testmain.sh index c5d2c1d..d3c8641 100755 --- a/testmain.sh +++ b/testmain.sh @@ -1,19 +1,18 @@ #!/bin/bash mkdir -p results -trials=1 -runs_test=10 +trials=2 +runs_test=500 # minimum is ceil(lg(runs_test)), otherwise modify will fail -for i in `seq 4 10` +for i in `seq 9 15` do echo "logleaves "$i runs_create=$(echo '2^'"$i" | bc) - echo "Doing "$trials"x"$runs" operations" + echo "Doing "$trials"x"$runs_create" operations for create, "$runs_test" for others" for j in $(seq 1 $trials) do - ./testall.sh $i $runs_create $runs_test 2> results/run_"$i"_"$j".txt sleep .2 |