aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-17 20:50:31 +0000
committerFranklin Wei <me@fwei.tk>2018-07-17 20:50:31 +0000
commitdc5df5430888f2ff4054d87086f0f8d3689af644 (patch)
tree85fe010f5692395d320724e239fe50dab6251da1
parent86a17a23b849ddedbb37c8030020c5aeee83ee1d (diff)
downloadcsaa-dc5df5430888f2ff4054d87086f0f8d3689af644.zip
csaa-dc5df5430888f2ff4054d87086f0f8d3689af644.tar.gz
csaa-dc5df5430888f2ff4054d87086f0f8d3689af644.tar.bz2
csaa-dc5df5430888f2ff4054d87086f0f8d3689af644.tar.xz
Work on saving prepopulated databases
-rw-r--r--prepopulate.sh21
-rwxr-xr-xtabulate.sh8
-rwxr-xr-xtestmain.sh9
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