generate_raw_data_reads.sh 1.2 KB

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. # Usage: ./generate_raw_data_reads.sh [niters]
  3. nitrs=1
  4. if [ "$1" != "" ]; then
  5. nitrs="$1"
  6. fi
  7. cd ..
  8. mkdir -p prac/data
  9. for itr in $(seq 1 $nitrs); do
  10. now=`date`; echo "$now: Running 10 reads on DB of size 2^16 ..."
  11. ./docker/run-experiment 16 10 >> "prac/data/log_16_10_reads.out"
  12. now=`date`; echo "$now: Running 10 reads on DB of size 2^18 ..."
  13. ./docker/run-experiment 18 10 >> "prac/data/log_18_10_reads.out"
  14. now=`date`; echo "$now: Running 10 reads on DB of size 2^20 ..."
  15. ./docker/run-experiment 20 10 >> "prac/data/log_20_10_reads.out"
  16. now=`date`; echo "$now: Running 10 reads on DB of size 2^22 ..."
  17. ./docker/run-experiment 22 10 >> "prac/data/log_22_10_reads.out"
  18. now=`date`; echo "$now: Running 10 reads on DB of size 2^24 ..."
  19. ./docker/run-experiment 24 10 >> "prac/data/log_24_10_reads.out"
  20. now=`date`; echo "$now: Running 10 reads on DB of size 2^26 ..."
  21. ./docker/run-experiment 26 10 >> "prac/data/log_26_10_reads.out"
  22. now=`date`; echo "$now: Running 10 reads on DB of size 2^28 ..."
  23. ./docker/run-experiment 28 10 >> "prac/data/log_28_10_reads.out"
  24. now=`date`; echo "$now: Running 10 reads on DB of size 2^30 ..."
  25. ./docker/run-experiment 30 10 >> "prac/data/log_30_10_reads.out"
  26. done