aboutsummaryrefslogtreecommitdiff
path: root/tabulate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tabulate.sh')
-rwxr-xr-xtabulate.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/tabulate.sh b/tabulate.sh
index f85a2cf..9ff2387 100755
--- a/tabulate.sh
+++ b/tabulate.sh
@@ -1,15 +1,21 @@
#!/bin/bash
-for i in `seq 2 14`
+for i in `seq 2 10`
do
rm -f all_"$i".txt
- for j in `seq 1 4`
+ rm -f dummy_all_"$i".txt
+ for j in `seq 1 5`
do
echo -n "$i $j " >> all_"$i".txt
+ echo -n "$i $j " >> dummy_all_"$i".txt
cat run_"$i"_"$j".txt | awk '/Elapsed/ || /Maximum/ || /User time/ || /System time/' | awk 'BEGIN{line=0}{if(line%4<=1)printf($4" ");if(line %4==2)printf($8" ");if(line%4==3)printf($6" ");}{line+=1}END{printf("\n");}' >> all_"$i".txt
+
+ cat dummy_"$i"_"$j".txt | awk '/Elapsed/ || /Maximum/ || /User time/ || /System time/' | awk 'BEGIN{line=0}{if(line%4<=1)printf($4" ");if(line %4==2)printf($8" ");if(line%4==3)printf($6" ");}{line+=1}END{printf("\n");}' >> dummy_all_"$i".txt
done
done
rm -f data_create.txt data_modify.txt data_retrieve.txt data_modifyenc.txt data_retrieveenc.txt
+rm -f data_dummy_create.txt data_dummy_modify.txt data_dummy_retrieve.txt
+
cat all_*.txt | awk '{print $1, $5 >> "data_create.txt";
print $1, $9 >> "data_modify.txt"
print $1, $13 >> "data_retrieve.txt"
@@ -17,6 +23,11 @@ cat all_*.txt | awk '{print $1, $5 >> "data_create.txt";
print $1, $21 >> "data_retrieveenc.txt"
}'
+cat dummy_all_*.txt | awk '{print $1, $5 >> "data_dummy_create.txt";
+ print $1, $9 >> "data_dummy_modify.txt";
+ print $1, $13 >> "data_dummy_retrieve.txt";
+}'
+
for f in data*.txt
do
echo $f